View previous topic :: View next topic |
Author |
Message |
jmastor
Joined: 14 Apr 2009 Posts: 2
|
Posted: Wed Apr 29, 2009 12:37 pm Post subject: dynamic source passwords |
|
|
Until now a source's password and username is set at the xml configuration file and if you want to change it you must restart icecast. I think it would be useful for the administrator to can change a source's password dynamicaly while icecast is running, from the admin page for example. This would be useful for handling source client users. (e.g. different password per source client, and not all the sources can connect any at time etc etc...) |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Apr 29, 2009 1:02 pm Post subject: |
|
|
The post 2.3.2 work (trunk) has support for that already using URL authentication. The option is stream_auth and works in a similar way to listener_add by delaying the client until a header is received. If admin requests require stream_auth then the same url is issued but admin=1 is added to the POST (think metadata updates for non-ogg streams).
The only thing missing (beside docs updates) is shoutcast compatible auth following the same procedure. This is slightly more complicated as the connection is not http. My current line of thinking in my branch work is to send an OK back to the source client straight away then perform the auth and drop the connection (if failed) before allowing the connection to complete.
karl. |
|
Back to top |
|
|
|