| View previous topic :: View next topic |
| Author |
Message |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Mon Aug 25, 2008 11:35 pm Post subject: IceCast 2.3.2 stream_auth |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Aug 26, 2008 1:36 am Post subject: |
|
|
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 |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Tue Aug 26, 2008 2:01 am Post subject: |
|
|
Thanks for the clarification. I'll install KH and work with it.
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Aug 26, 2008 2:48 am Post subject: |
|
|
stream auth requests for /admin requests has admin=1 added to POST
karl. |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Tue Aug 26, 2008 3:11 am Post subject: |
|
|
Awesome! I'll let you know how it all works out. _________________ ++I; |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Wed Aug 27, 2008 7:41 pm Post subject: |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Aug 28, 2008 12:44 am Post subject: |
|
|
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 |
|
 |
|