View previous topic :: View next topic |
Author |
Message |
Guest Guest
|
Posted: Tue Aug 30, 2005 9:12 pm Post subject: Password |
|
|
i am trying to set up an password loggin to my stream using
<mount>
<mount-name>/example-complex.ogg</mount-name>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
but howe to configure it?
any suggestion is welcome
Cheers |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Aug 31, 2005 1:48 am Post subject: |
|
|
you have the basics right there, you just need the htpassed file to make use of accounts, use the /admin interface to manage usernames
karl. |
|
Back to top |
|
|
guest Guest
|
Posted: Wed Aug 31, 2005 5:32 am Post subject: HTpsswd |
|
|
if i understand right im to get a red key in the stats menu, but idont.
any suggestions to what i have done wrong?
Cheers |
|
Back to top |
|
|
Guest Guest
|
Posted: Wed Aug 31, 2005 6:42 am Post subject: config |
|
|
<!-- This config file can be used to configure icecast
in shoutcast compatibility mode which will allow
you to connect the Shoutcast DSP (or other Nullsoft
encoders such as the NSV encoder). Note this is just
a minimal config, check the main icecast.xml.dist file
for a complete list of possible configuration options -->
<icecast>
<limits>
<sources>1</sources>
</limits>
<authentication>
<!-- Configure the shoutcast DSP to use this password -->
<source-password>pass</source-password>
<!-- This is used for icecast's web interface -->
<admin-user>admin</admin-user>
<admin-password>pass</admin-password>
</authentication>
<directory>
<yp-url-timeout>2</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>www.web.com</hostname>
<!-- You MUST define 2 ports, port and port +1 -->
<listen-socket>
<!-- Configure the shoutcast DSP with *this* port
the shoutcast DSP actually will connect the
encoder to this port + 1 -->
<port>8000</port>
</listen-socket>
<listen-socket>
<!-- This port *must* be one larger than the one defined
above and defined as 'shoutcast-compat' -->
<port>8001</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<mount>
<mount-name>funnyname</mount-name>
<authentication type="htpasswd">
<option name="filename" value="auth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
<security>
<chroot>0</chroot>
</security>
</icecast> |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Aug 31, 2005 10:56 am Post subject: |
|
|
The key image applies when icecast sees that there is listener auth available, if one doesn't appear against the stream on the stats then the mount point for the stream must be different from the one specified in <mount-name>
If it's a shoutcast DSP source client, then use the <shoutcast-mount> tag in icecast to set the mountpoint as they don't send a mountpoint when they connect.
karl. |
|
Back to top |
|
|
|