Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Password

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Guest
Guest





PostPosted: Tue Aug 30, 2005 9:12 pm    Post subject: Password Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Aug 31, 2005 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
guest
Guest





PostPosted: Wed Aug 31, 2005 5:32 am    Post subject: HTpsswd Reply with quote

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





PostPosted: Wed Aug 31, 2005 6:42 am    Post subject: config Reply with quote

<!-- 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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Aug 31, 2005 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber