| View previous topic :: View next topic |
| Author |
Message |
Deadfish Guest
|
Posted: Thu Apr 06, 2006 3:31 pm Post subject: A boring question about the user login,Help! |
|
|
Click the "Manage Authentication",and add some users successfully,however,when I used the user that has added ,to login from the web,but the WMP occurred a error when it started.
But in the WMP,i just put the url in the URL_InputBox of WMP,and submit the user and paswd,the music can play normally.
Why use the way of web to login is wrong??? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Apr 06, 2006 9:35 pm Post subject: |
|
|
Your question isn't clear, wmp may do caching of usernames/password to 'ease user experience' aka have a security issue. Without more info about your setup it's hard to go further.
karl. |
|
| Back to top |
|
 |
Deadfish Guest
|
Posted: Fri Apr 07, 2006 2:18 am Post subject: |
|
|
ok,I try my best to describe the detail .
There are two ways to access the stream ,which need Authentication.
the first way is the WEB that has listed the stream on the stauts.xsl,right?
the second way is "put the stream's url directly in the wmp",right?
I want to use the first way to access the stream that need Authentication ,but after I submit the user and paswd on the WEB, the wmp started and pop a MessageBox,it said:"WMP can not play the file,if the file at other pc, please make sure the Network has connected.....",
but the file is local.
and use the second way,it is running ok(it is also need authentication,need username,need paswd).
how strange it is! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Apr 07, 2006 1:43 pm Post subject: |
|
|
Have you checked the log files to see the requests, access log shows the username if sent for instance, and error log shows the processing involved.
karl. |
|
| Back to top |
|
 |
Deadfish Guest
|
Posted: Sat Apr 08, 2006 2:04 am Post subject: |
|
|
I click the "submit" button at 09:38:15,and corresponding error.log is:
[2006-04-08 09:38:16] DBUG admin/admin.c Admin request (/admin/buildm3u)
[2006-04-08 09:38:16] DBUG admin/admin.c Got command (buildm3u)
[2006-04-08 09:38:16] INFO admin/admin.c Received admin command buildm3u on mount "/Deadfish"
[2006-04-08 09:38:16] DBUG fserve/fserve.c Adding client to file serving engine
[2006-04-08 09:38:16] DBUG stats/stats.c update node total_bytes_read (1188600)
[2006-04-08 09:38:16] DBUG stats/stats.c update node total_bytes_sent (0)
[2006-04-08 09:38:16] DBUG stats/stats.c update node clients (2)
[2006-04-08 09:38:16] DBUG stats/stats.c update node connections (11)
[2006-04-08 09:38:16] DBUG stats/stats.c update node client_connections (10)
[2006-04-08 09:38:17] DBUG stats/stats.c update node clients (1)
[2006-04-08 09:38:17] DBUG stats/stats.c update node clients (2)
[2006-04-08 09:38:17] DBUG stats/stats.c update node connections (12)
[2006-04-08 09:38:17] DBUG admin/admin.c Admin request (/admin/buildm3u)
[2006-04-08 09:38:17] DBUG admin/admin.c Got command (buildm3u)
[2006-04-08 09:38:17] INFO admin/admin.c Received admin command buildm3u on mount "/Deadfish"
[2006-04-08 09:38:17] DBUG fserve/fserve.c Adding client to file serving engine
[2006-04-08 09:38:17] DBUG stats/stats.c update node client_connections (11)
[2006-04-08 09:38:17] DBUG stats/stats.c update node clients (1)
[2006-04-08 09:38:18] WARN xmlEncodeEntitiesReentrant : input not UTF-8
and the access.log is :
59.71.71.219 - - [08/Apr/2006:09:38:16 +0800] "GET /admin/buildm3u HTTP/1.1" 200 145 "http://59.71.71.219:8000/auth.xsl" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" 0
59.71.71.219 - - [08/Apr/2006:09:38:17 +0800] "GET /admin/buildm3u HTTP/1.1" 200 145 "-" "Windows-Media-Player/10.00.00.3700" 0
59.71.71.219 - - [08/Apr/2006:09:38:27 +0800] "SOURCE /Deadfish HTTP/1.0" 200 19 "-" "libshout/2.0.0" 61
I cannt see anything is abnormal,right?? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Apr 08, 2006 2:16 am Post subject: |
|
|
note that the access log is only showing the buildm3u requests, this creates the playlist. The SOURCE request is the source client so no actual stream content is requested from icecast.
karl. |
|
| Back to top |
|
 |
Deadfish Guest
|
Posted: Sat Apr 08, 2006 2:22 am Post subject: |
|
|
I also used the second way to access the stream,I try to connect the stream at 10:14:55,the corresponding error.log is:
[2006-04-08 10:14:56] INFO fserve/fserve.c checking for file /Deadfish.m3u (./web/Deadfish.m3u)
[2006-04-08 10:14:56] DBUG fserve/fserve.c Adding client to file serving engine
[2006-04-08 10:14:56] DBUG stats/stats.c update node clients (2)
[2006-04-08 10:14:56] DBUG stats/stats.c update node connections (3)
[2006-04-08 10:14:56] DBUG stats/stats.c update node client_connections (2)
[2006-04-08 10:14:56] DBUG stats/stats.c update node clients (1)
[2006-04-08 10:14:56] DBUG stats/stats.c update node clients (2)
[2006-04-08 10:14:56] DBUG stats/stats.c update node connections (4)
[2006-04-08 10:14:56] INFO auth/auth.c adding client for authentication
[2006-04-08 10:14:56] DBUG fserve/fserve.c Adding client to file serving engine
[2006-04-08 10:14:56] DBUG stats/stats.c update node client_connections (3)
[2006-04-08 10:14:56] DBUG stats/stats.c update node clients (1)
[2006-04-08 10:14:57] DBUG stats/stats.c update node total_bytes_read (942200)
[2006-04-08 10:14:57] DBUG stats/stats.c update node total_bytes_sent (0)
and at 10:15:05,I submit the username and paswd to the server,it is connected successfully.The corresponding error.log is :
[2006-04-08 10:15:06] INFO auth/auth.c adding client for authentication
[2006-04-08 10:15:06] DBUG stats/stats.c update node clients (2)
[2006-04-08 10:15:06] DBUG stats/stats.c update node connections (5)
[2006-04-08 10:15:06] DBUG stats/stats.c update node client_connections (4)
[2006-04-08 10:15:06] DBUG auth/auth.c max on /Deadfish is -1 (cur 0)
[2006-04-08 10:15:06] DBUG auth/auth.c Added client to /Deadfish
[2006-04-08 10:15:06] DBUG auth/auth.c client authenticated, passed to source
[2006-04-08 10:15:06] DBUG source/source.c Client added
[2006-04-08 10:15:06] INFO source/source.c listener count on /Deadfish now 1
[2006-04-08 10:15:06] DBUG format/format.c processing pending client headers
[2006-04-08 10:15:06] DBUG stats/stats.c update node listener_connections (1)
[2006-04-08 10:15:06] DBUG stats/stats.c update node listener_peak (1)
[2006-04-08 10:15:06] DBUG stats/stats.c update node listeners (1)
[2006-04-08 10:15:07] INFO auth/auth.c adding client for authentication
[2006-04-08 10:15:07] DBUG stats/stats.c update node clients (3)
[2006-04-08 10:15:07] DBUG stats/stats.c update node connections (6)
[2006-04-08 10:15:07] DBUG stats/stats.c update node client_connections (5)
[2006-04-08 10:15:07] DBUG auth/auth.c max on /Deadfish is -1 (cur 1)
[2006-04-08 10:15:07] DBUG auth/auth.c Added client to /Deadfish
[2006-04-08 10:15:07] DBUG auth/auth.c client authenticated, passed to source
Note the last line,the first way dont have. |
|
| Back to top |
|
 |
Deadfish Guest
|
Posted: Sat Apr 08, 2006 2:27 am Post subject: |
|
|
I forget the access.log that use the second way,it is:
59.71.71.219 - - [08/Apr/2006:10:14:17 +0800] "GET /admin/metadata HTTP/1.0" 200 177 "-" "libshout/2.0.0" 0
59.71.71.219 - - [08/Apr/2006:10:14:56 +0800] "GET /Deadfish.m3u HTTP/1.1" 200 85 "-" "Windows-Media-Player/10.00.00.3700" 1
59.71.71.219 - - [08/Apr/2006:10:14:56 +0800] "GET /Deadfish HTTP/1.1" 401 115 "-" "NSPlayer/10.0.0.3700 WMFSDK/10.0" 0
59.71.71.219 - 123 [08/Apr/2006:10:15:07 +0800] "GET /Deadfish HTTP/1.1" 200 66075 "-" "NSPlayer/10.0.0.3700 WMFSDK/10.0" 1
59.71.71.219 - 123 [08/Apr/2006:10:15:18 +0800] "GET /Deadfish HTTP/1.1" 200 334875 "-" "NSPlayer/10.0.0.3700 WMFSDK/10.0" 12
59.71.71.219 - - [08/Apr/2006:10:15:21 +0800] "SOURCE /Deadfish HTTP/1.0" 200 19 "-" "libshout/2.0.0" 64 |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Apr 08, 2006 3:07 am Post subject: |
|
|
ok, for the second way you are requesting the m3u link not the actual stream URL. You can see the different attempts and the username.
The odd case is what happens with your first run through, it seems like IE is requesting the playlist then for some reason wmp requests the same thing, I can't seem to connect here to verify anything though.
karl. |
|
| Back to top |
|
 |
Deadfish Guest
|
Posted: Sun Apr 09, 2006 12:48 pm Post subject: |
|
|
My classmate used the both ways successfully.The configuration of his xml is same to me.
Maybe some differences of OP's service lead to different results.
I am so tired about this problem.
Thanks for your help. |
|
| Back to top |
|
 |
|