[Icecast-dev] MySQL auth

Mike Whitaker mike at altrion.org
Sun Oct 24 07:33:13 PDT 2004


On 24 Oct 2004, at 13:25, Mike Whitaker wrote:

>>
>> I have started an implementation in the kh branch, so that libcurl 
>> could
>> be used for listener auth, so can shell commands, but neither have 
>> been
>> used in anger yet.
>
> Ooo. :)
>
> Having just had a look at auth_curl.c in kh, that would probably do 
> what we want even better.
>
> Is it possible (or would it *be* possible) to make <mount> sections 
> take wildcards for <mount-path>? From our viewpoint it'd be much 
> easier to process whether the user is authorized to handle a  
> *specific* stream in the auth URL, rather than by tweaking icecast.xml 
> every time we add a new stream.

A oneline fix for you that drove me briefly mad till I realised that 
CGI->header capitaliases the first character of custom headers:

src/auth_url.c: line 345 should read:
     if (strncasecmp (ptr, "icecast-auth-user: 1", 20) == 0)

Other than that, I can report that my quick hack to test auth_url works 
a treat :)



More information about the Icecast-dev mailing list