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 

IceCast 2.3.2 stream_auth

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



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Mon Aug 25, 2008 11:35 pm    Post subject: IceCast 2.3.2 stream_auth Reply with quote

I'm working on some authentication scripts and from what I am able to tell, it doesn't appear as if IceCast 2.3.2 has the stream_auth support actually in it. I figured with all the earlier mentions in the KH branches, it would have made it into the last release. I am making this assumption based upon my listener auth request going through fine, but my stream_auth doesn't even attempt to touch my web server.

Code:
<mount>
  <mount-name>/testing.ogg</mount-name>
  <authentication type="url">
    <option name="stream_auth" value="http://dev/modules/uhq_iceauth/auth.php"/>
    <option name="listener_add" value="http://dev/modules/uhq_iceauth/auth.php"/>
    <option name="listener_remove" value="http://dev/modules/uhq_iceauth/auth.php" />
    <option name="mount_add" value="http://dev/modules/uhq_iceauth/auth.php"/>
    <option name="mount_remove" value="http://dev/modules/uhq_iceauth/auth.php"/>
    <option name="user" value="user"/>
    <option pass="pass" value="pass"/>
    <option name="timelimit_header" value="icecast-timelimit:" />
    <option name="auth_header" value="icecast-auth-user: OK"/>
  </authentication>
</mount>


Should I move to 2.3.2 KH1 first, or provide more specific details here?
_________________
++I;
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Aug 26, 2008 1:36 am    Post subject: Reply with quote

The stream auth option is only in the kh tree currently as it needs trying out before merging into trunk. I think it's basically done now, although I haven't had much feedback. The odd case with stream auth is that /admin metadata updates also need to authenticate as well.

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



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Tue Aug 26, 2008 2:01 am    Post subject: Reply with quote

Thanks for the clarification. I'll install KH and work with it. Smile

I believe another thread stated there was a difference between the stream update itself and the admin updates as far as another field that was carried in POST. Do you remember what that was offhand?
_________________
++I;
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Aug 26, 2008 2:48 am    Post subject: Reply with quote

stream auth requests for /admin requests has admin=1 added to POST

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



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Tue Aug 26, 2008 3:11 am    Post subject: Reply with quote

Awesome! I'll let you know how it all works out.
_________________
++I;
Back to top
View user's profile Send private message
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Wed Aug 27, 2008 7:41 pm    Post subject: Reply with quote

I upgraded to the latest KH branch and have verified the stream_auth piece works as I'm expecting.

However, in my testing, I notice if my script fails authentication and sends a message, that the message isn't recorded in the error log like it is with the listener_add.
_________________
++I;
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Aug 28, 2008 12:44 am    Post subject: Reply with quote

I assume you mean the message you pass back in the headers? If so it should report WARN "....auth to server ... failed with ....".

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