<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1257">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#d4d0c8>
<DIV><FONT face=Arial size=2>strange processes are happening while trying to 
authenticate via url using (icecastauth-examle-1.0)</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>i'm using user "test" and password "test". I'm 
opening <A 
href="http://10.10.10.10:8000/Test.m3u">http://10.10.10.10:8000/Test.m3u</A> 
with winamp 5.1. </FONT></DIV>
<DIV><FONT face=Arial size=2>This user(test) exists in mysql database, and 
action.php suscessfuly extracts that user from database.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>here's what I receive in icecast error 
log:</FONT></DIV>
<DIV><FONT face=Arial size=2>2006-01-29  15:32:30] INFO 
auth_url/url_add_client client auth (<A 
href="http://10.10.10.10/auth/action.php">http://10.10.10.10/auth/action.php</A>) 
failed with ""</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and apache's httpd-error.log says:</FONT></DIV>
<DIV><FONT face=Arial size=2>[Sun Jan 29 15:32:30 2006] [error] [client 
10.10.10.10] user  not found: /auth/action.php<BR>[Sun Jan 29 15:32:30 
2006] [error] [client 10.10.10.10] user test not found: 
/auth/action.php</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>it is strange that "" (empty) user also seems try 
to authenticate.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>below is the dump of tcp session:</FONT></DIV>
<DIV><FONT face=Arial 
size=2>_____________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2>GET /Test HTTP/1.0</FONT></DIV>
<DIV><FONT face=Arial size=2>Host: 86.38.25.21</FONT></DIV>
<DIV><FONT face=Arial size=2>User-Agent: WinampMPEG/5.1</FONT></DIV>
<DIV><FONT face=Arial size=2>Accept: */*</FONT></DIV>
<DIV><FONT face=Arial size=2>Icy-MetaData:1</FONT></DIV>
<DIV><FONT face=Arial size=2>Authorization: Basic dGVzdDp0ZXN0</FONT></DIV>
<DIV><FONT face=Arial size=2>Connection: close</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>HTTP/1.0 401 Authentication Required</FONT></DIV>
<DIV><FONT face=Arial size=2>WWW-Authenticate: Basic realm="Icecast2 
Server"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You need to authenticate</FONT></DIV>
<DIV><FONT face=Arial 
size=2>______________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i've also tried testauth.php with action 
"listener_add"</FONT></DIV>
<DIV><FONT face=Arial size=2>here's it's dump:</FONT></DIV>
<DIV><FONT face=Arial 
size=2>______________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2>POST /auth/action.php HTTP/1.1</FONT></DIV>
<DIV><FONT face=Arial size=2>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, 
*/*</FONT></DIV>
<DIV><FONT face=Arial size=2>Referer: <A 
href="http://10.10.10.10/auth/testauth.php">http://10.10.10.10/auth/testauth.php</A></FONT></DIV>
<DIV><FONT face=Arial size=2>Accept-Language: lt</FONT></DIV>
<DIV><FONT face=Arial size=2>Content-Type: 
application/x-www-form-urlencoded</FONT></DIV>
<DIV><FONT face=Arial size=2>Accept-Encoding: gzip, deflate</FONT></DIV>
<DIV><FONT face=Arial size=2>User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.1; .NET CLR 1.1.4322)</FONT></DIV>
<DIV><FONT face=Arial size=2>Host: 10.10.10.10</FONT></DIV>
<DIV><FONT face=Arial size=2>Content-Length: 89</FONT></DIV>
<DIV><FONT face=Arial size=2>Connection: Keep-Alive</FONT></DIV>
<DIV><FONT face=Arial size=2>Cache-Control: no-cache</FONT></DIV>
<DIV><FONT face=Arial size=2>Authorization: Basic YWRtaW46c3RybTA2</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial 
size=2>user=test&pass=test&mount=%2FTest&server=10.10.10.10&port=8000&action=listener_add</FONT></DIV>
<DIV><FONT face=Arial size=2>HTTP/1.0 200 OK</FONT></DIV>
<DIV><FONT face=Arial size=2>Date: Sun, 29 Jan 2006 11:49:12 GMT</FONT></DIV>
<DIV><FONT face=Arial size=2>Server: Apache</FONT></DIV>
<DIV><FONT face=Arial size=2>X-Powered-By: PHP/5.1.1</FONT></DIV>
<DIV><FONT face=Arial size=2>icecast-auth-user: 1</FONT></DIV>
<DIV><FONT face=Arial size=2>icecast-auth-message: OK</FONT></DIV>
<DIV><FONT face=Arial size=2>Content-Length: 11</FONT></DIV>
<DIV><FONT face=Arial size=2>Content-Type: text/html</FONT></DIV>
<DIV><FONT face=Arial size=2>X-Cache: MISS from server.telecom.lt</FONT></DIV>
<DIV><FONT face=Arial size=2>Connection: keep-alive</FONT></DIV>
<DIV><FONT face=Arial 
size=2>_________________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>my icecast.xml portion:</FONT></DIV>
<DIV><FONT face=Arial 
size=2>_____________________________________________________________</FONT></DIV>
<DIV><FONT face=Arial 
size=2><mount><BR><mount-name>/Test</mount-name><BR><authentication 
type="url"><BR><option name="listener_add"    value="<A 
href='http://10.10.10.10/auth/action.php"/'>http://10.10.10.10/auth/action.php"/</A>><BR><option 
name="listener_remove" value="<A 
href='http://86.38.25.21/auth/action.php"/'>http://10.10.10.10/auth/action.php"/</A>><BR><option 
name="mount_add"       value="<A 
href='http://86.38.25.21/auth/action.php"/'>http://10.10.10.10/auth/action.php"/</A>><BR><option 
name="mount_remove"    value="<A 
href='http://86.38.25.21/auth/action.php"/'>http://10.10.10.10/auth/action.php"/</A>><BR></authentication><BR></mount></FONT></DIV>
<DIV><FONT face=Arial 
size=2>_______________________________________________________________</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ps: 
<DIV><FONT face=Arial size=2>the sympthoms are similar to;</FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="http://forum.icecast.org/viewtopic.php?p=1675&sid=1a94cad7a98e1fa14c1e63b6715ca378">http://forum.icecast.org/viewtopic.php?p=1675&sid=1a94cad7a98e1fa14c1e63b6715ca378</A></FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>any thoughts are welcome, thanks for 
replies</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV></BODY></HTML>