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 

Authentication

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





PostPosted: Thu Apr 03, 2008 4:08 pm    Post subject: Authentication Reply with quote

Hello all,

I've got the icecast server running okay. I wanted to try to get an authentication set up going. I'd like to use url, but I can't even get htpasswd to work.

I understand I have to define a mount section in the XML config file. I only want to serve up static, webroot based files.

The documentation says I have to define a <mount> section and it must have <mount-point> and <authentication>. It says the mount-name is the mountpoint that you use to connect your source client with. I don't have a source client. If I'm understanding the terminology correctly, a source client is something that feeds the audio data to icecast so it can stream it to the listener - something like ices or Darkice would be the source client. Is that correct? I don't want to run anything like that - just want to serve up the mp3 files that are in the <webroot> path. I've got the <fileserve> set to 1.

Here is the <mount> section I added:

Code:

<mount>
   <mount-name>/mp3</mount-name>
   <authentication type="htpasswd">
        <option name="filename" value="authedusers"/>
        <option name="allow_duplicate_users" value="0"/>
   </authentication>
</mount>


I understand from the documentation that the file "authedusers" doesn't have to exist when I set everything up and that there is built in support from the admin page to handle adding users if everything is set up correctly. I guess I don't have everything set up correctly because I don't see the page the documentation describes. I go to the stats.xsl page but I see the "red key" that the docs describe. I don't see "Icecast Status Page" at the top, the links above it either. All I see is the Global Server Stats". The docs say go to http://server:port/admin/stats.xsl. Should it be "stats.xsl" or "status.xsl"? The status.xsl isn't in the admin path and navigating to it yields a link to icecast.org and nothing else. Anyway...

Any help on this please? What exactly can I provide to get the answer? Do you want/need to see the entire XML config file? I was browsing through the forum posts and so I'm using the KH release ver 32. Maybe even a donation would be possible for help? Smile

Thanks!
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Apr 03, 2008 7:12 pm    Post subject: Reply with quote

with 2.3.1 onwards, the mount settings will apply to webroot files as well as sources, in this case a file named /mp3. If you intend to refer to a directory then you'll need the -kh release and the mount-name would be /mp3/*.mp3 I guess. The usual cause of mount settings not applying is either commenting out or the wrong name to match against.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu Apr 03, 2008 11:40 pm    Post subject: Reply with quote

OMG! How idiotic I feel! It applies to files, not folders. Geez! I've been pulling my hair out for a month on that. Dang.

I tried the /mp3/*.mp3 path and it works!

Thanks Karl! You saved my life!

David
Back to top
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