[Icecast] url authentication problems

Klauss Fumuldavijus dnr at freemail.lt
Tue Jan 31 23:57:18 PST 2006


strange processes are happening while trying to authenticate via url using (icecastauth-examle-1.0)
i'm using user "test" and password "test". I'm opening http://10.10.10.10:8000/Test.m3u with winamp 5.1. 
This user(test) exists in mysql database, and action.php suscessfuly extracts that user from database.

here's what I receive in icecast error log:
2006-01-29  15:32:30] INFO auth_url/url_add_client client auth (http://10.10.10.10/auth/action.php) failed with ""

and apache's httpd-error.log says:
[Sun Jan 29 15:32:30 2006] [error] [client 10.10.10.10] user  not found: /auth/action.php
[Sun Jan 29 15:32:30 2006] [error] [client 10.10.10.10] user test not found: /auth/action.php

it is strange that "" (empty) user also seems try to authenticate.

below is the dump of tcp session:
_____________________________________________
GET /Test HTTP/1.0
Host: 86.38.25.21
User-Agent: WinampMPEG/5.1
Accept: */*
Icy-MetaData:1
Authorization: Basic dGVzdDp0ZXN0
Connection: close

HTTP/1.0 401 Authentication Required
WWW-Authenticate: Basic realm="Icecast2 Server"

You need to authenticate
______________________________________________

i've also tried testauth.php with action "listener_add"
here's it's dump:
______________________________________________
POST /auth/action.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-icq, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://10.10.10.10/auth/testauth.php
Accept-Language: lt
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Host: 10.10.10.10
Content-Length: 89
Connection: Keep-Alive
Cache-Control: no-cache
Authorization: Basic YWRtaW46c3RybTA2

user=test&pass=test&mount=%2FTest&server=10.10.10.10&port=8000&action=listener_add
HTTP/1.0 200 OK
Date: Sun, 29 Jan 2006 11:49:12 GMT
Server: Apache
X-Powered-By: PHP/5.1.1
icecast-auth-user: 1
icecast-auth-message: OK
Content-Length: 11
Content-Type: text/html
X-Cache: MISS from server.telecom.lt
Connection: keep-alive
_________________________________________________

this session looks ok, but i don't understand how to start streaming after this procedure? testauth.php is just something like query parser?isn't it?

my icecast.xml portion:
_____________________________________________________________
<mount>
<mount-name>/Test</mount-name>
<authentication type="url">
<option name="listener_add"    value="http://10.10.10.10/auth/action.php"/>
<option name="listener_remove" value="http://10.10.10.10/auth/action.php"/>
<option name="mount_add"       value="http://10.10.10.10/auth/action.php"/>
<option name="mount_remove"    value="http://10.10.10.10/auth/action.php"/>
</authentication>
</mount>
_______________________________________________________________


ps: 
the sympthoms are similar to;
http://forum.icecast.org/viewtopic.php?p=1675&sid=1a94cad7a98e1fa14c1e63b6715ca378


any thoughts are welcome, thanks for replies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/icecast/attachments/20060201/4fdb67da/attachment.htm


More information about the Icecast mailing list