| View previous topic :: View next topic |
| Author |
Message |
mathijsie
Joined: 30 May 2010 Posts: 9
|
Posted: Mon Jul 26, 2010 10:44 am Post subject: [2.3.2] Problem with URL authentication |
|
|
I'm using URL authentication with my Icecast 2.3.2 setup.
It works fine, however, I cannot use more than one client to listen to the stream, all other clients fail to authenticate. Strangely enough, the PHP script which does the authentication part, does sent the "icecast-auth-user: 1" header, but still the clients cannot connect.
Access log:
| Code: |
192.168.2.5 - - [26/Jul/2010:12:37:57 +0200] "GET /vorbis.ogg HTTP/1.1" 401 115 "-" "vlc/1.1.1 LibVLC/1.1.1" 0
192.168.2.9 - mathijs [26/Jul/2010:12:38:09 +0200] "GET /vorbis.ogg HTTP/1.1" 401 115 "-" "vlc/1.1.1 LibVLC/1.1.1" 1 |
Error log:
| Code: |
[2010-07-26 12:37:50] INFO main/main.c Icecast 2.3.2 server started
[2010-07-26 12:37:50] INFO connection/connection.c No SSL capability
[2010-07-26 12:37:50] INFO yp/yp.c YP update thread started
[2010-07-26 12:37:51] INFO connection/connection.c Source logging in at mountpoint "/vorbis.ogg"
[2010-07-26 12:37:51] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 12:37:51] INFO source/source.c listener count on /vorbis.ogg now 0
[2010-07-26 12:37:52] INFO format-vorbis/format_vorbis.c seen initial vorbis header
[2010-07-26 12:37:57] INFO auth/auth.c adding client for authentication
[2010-07-26 12:37:57] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 12:37:57] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 12:37:57] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 12:37:57] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 12:37:57] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 12:37:57] INFO auth_url/auth_url.c client auth (http://localhost/****/) failed with "no username and/or password provided"
[2010-07-26 12:37:57] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 12:38:02] INFO auth/auth.c adding client for authentication
[2010-07-26 12:38:02] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 12:38:02] INFO source/source.c listener count on /vorbis.ogg now 1
[2010-07-26 12:38:08] INFO auth/auth.c adding client for authentication
[2010-07-26 12:38:08] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 12:38:08] INFO auth/auth.c client 19 failed
[2010-07-26 12:38:20] INFO format-vorbis/format_vorbis.c seen initial vorbis header |
Am I doing something wrong?
Thanks in advance. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Jul 26, 2010 12:56 pm Post subject: |
|
|
probably, you are still subject to max listeners which is one possible reason why a user can be auth'd but then dropped.
The log doesn't help much as it's only level 3
karl. |
|
| Back to top |
|
 |
mathijsie
Joined: 30 May 2010 Posts: 9
|
Posted: Mon Jul 26, 2010 1:35 pm Post subject: |
|
|
Hi,
Thanks for your reply. The maximum number of listeners is set to 5, so 2 listeners should be possible.
I've changed the log level to 4 and tried to connect again with 2 clients:
| Code: |
[2010-07-26 15:29:27] INFO main/main.c Icecast 2.3.2 server started
[2010-07-26 15:29:27] DBUG yp/yp.c Updating YP configuration
[2010-07-26 15:29:27] INFO connection/connection.c No SSL capability
[2010-07-26 15:29:27] INFO yp/yp.c YP update thread started
[2010-07-26 15:29:28] DBUG slave/slave.c checking master stream list
[2010-07-26 15:29:30] INFO connection/connection.c Source logging in at mountpoint "/vorbis.ogg"
[2010-07-26 15:29:30] DBUG connection/connection.c sources count is 0
[2010-07-26 15:29:30] DBUG source/source.c Applying mount information for "/vorbis.ogg"
[2010-07-26 15:29:30] DBUG source/source.c public set to 0
[2010-07-26 15:29:30] DBUG source/source.c max listeners to 5
[2010-07-26 15:29:30] DBUG source/source.c queue size to 512000
[2010-07-26 15:29:30] DBUG source/source.c burst size to 65536
[2010-07-26 15:29:30] DBUG source/source.c source timeout to 5
[2010-07-26 15:29:30] DBUG source/source.c fallback_when_full to 0
[2010-07-26 15:29:30] DBUG connection/connection.c source is ready to start
[2010-07-26 15:29:30] DBUG fserve/fserve.c Adding client to file serving engine
[2010-07-26 15:29:30] DBUG source/source.c Source creation complete
[2010-07-26 15:29:30] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 2
[2010-07-26 15:29:30] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 15:29:30] DBUG auth/auth.c 1 client(s) pending on /vorbis.ogg
[2010-07-26 15:29:30] DBUG stats/stats.c update node clients (1)
[2010-07-26 15:29:30] DBUG stats/stats.c update node connections (1)
[2010-07-26 15:29:30] DBUG stats/stats.c update node sources (1)
[2010-07-26 15:29:30] DBUG stats/stats.c new source stat /vorbis.ogg
[2010-07-26 15:29:30] DBUG stats/stats.c new node listenurl (http://192.168.2.3:8000/vorbis.ogg)
[2010-07-26 15:29:30] DBUG stats/stats.c new node listener_peak (0)
[2010-07-26 15:29:30] DBUG stats/stats.c new node public (0)
[2010-07-26 15:29:30] DBUG stats/stats.c new node server_name (Teststream)
[2010-07-26 15:29:30] DBUG stats/stats.c new node server_description (Teststream)
[2010-07-26 15:29:30] DBUG stats/stats.c new node server_url (http://www.test.stream.nl/)
[2010-07-26 15:29:30] DBUG stats/stats.c new node genre (various)
[2010-07-26 15:29:30] DBUG stats/stats.c new node server_type (application/ogg)
[2010-07-26 15:29:30] DBUG stats/stats.c new node authenticator (url)
[2010-07-26 15:29:30] DBUG stats/stats.c new node max_listeners (5)
[2010-07-26 15:29:30] DBUG stats/stats.c new node source_ip (127.0.0.1)
[2010-07-26 15:29:30] DBUG stats/stats.c new node user_agent (libshout/2.2.2)
[2010-07-26 15:29:30] DBUG stats/stats.c update node source_client_connections (1)
[2010-07-26 15:29:30] DBUG stats/stats.c new node listeners (0)
[2010-07-26 15:29:30] DBUG stats/stats.c update node listenurl (http://192.168.2.3:8000/vorbis.ogg)
[2010-07-26 15:29:30] DBUG stats/stats.c update node source_total_connections (1)
[2010-07-26 15:29:30] DBUG stats/stats.c new node slow_listeners (0)
[2010-07-26 15:29:30] DBUG stats/stats.c update node listeners (0)
[2010-07-26 15:29:30] DBUG stats/stats.c update node listener_peak (0)
[2010-07-26 15:29:30] DBUG stats/stats.c new node stream_start (Mon, 26 Jul 2010 15:29:30 West-Europa (zomertijd))
[2010-07-26 15:29:30] INFO source/source.c listener count on /vorbis.ogg now 0
[2010-07-26 15:29:30] DBUG source/source.c Applying mount information for "/vorbis.ogg"
[2010-07-26 15:29:30] DBUG source/source.c public set to 0
[2010-07-26 15:29:30] DBUG source/source.c max listeners to 5
[2010-07-26 15:29:30] DBUG source/source.c queue size to 512000
[2010-07-26 15:29:30] DBUG source/source.c burst size to 65536
[2010-07-26 15:29:30] DBUG source/source.c source timeout to 5
[2010-07-26 15:29:30] DBUG source/source.c fallback_when_full to 0
[2010-07-26 15:29:30] DBUG stats/stats.c new node total_bytes_read (0)
[2010-07-26 15:29:30] DBUG stats/stats.c new node total_bytes_sent (0)
[2010-07-26 15:29:30] DBUG stats/stats.c update node listeners (0)
[2010-07-26 15:29:30] DBUG stats/stats.c update node listenurl (http://192.168.2.3:8000/vorbis.ogg)
[2010-07-26 15:29:30] DBUG stats/stats.c update node listener_peak (0)
[2010-07-26 15:29:30] DBUG stats/stats.c update node public (0)
[2010-07-26 15:29:30] DBUG stats/stats.c update node server_name (Teststream)
[2010-07-26 15:29:30] DBUG stats/stats.c update node server_description (Teststream)
[2010-07-26 15:29:30] DBUG stats/stats.c update node server_url (http://www.test.stream.nl/)
[2010-07-26 15:29:30] DBUG stats/stats.c update node genre (various)
[2010-07-26 15:29:30] DBUG stats/stats.c update node server_type (application/ogg)
[2010-07-26 15:29:30] DBUG stats/stats.c update node authenticator (url)
[2010-07-26 15:29:30] DBUG stats/stats.c update node max_listeners (5)
[2010-07-26 15:29:30] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 2
[2010-07-26 15:29:30] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 1
[2010-07-26 15:29:31] DBUG format-vorbis/format_vorbis.c checking for vorbis codec
[2010-07-26 15:29:31] INFO format-vorbis/format_vorbis.c seen initial vorbis header
[2010-07-26 15:29:31] DBUG format-vorbis/format_vorbis.c processing incoming header packet (1)
[2010-07-26 15:29:31] DBUG format-vorbis/format_vorbis.c processing incoming header packet (2)
[2010-07-26 15:29:31] DBUG format-vorbis/format_vorbis.c we have the header packets now
[2010-07-26 15:29:31] DBUG format-vorbis/format_vorbis.c Adding the 3 header packets
[2010-07-26 15:29:31] DBUG format-ogg/format_ogg.c attaching BOS page
[2010-07-26 15:29:31] DBUG format-ogg/format_ogg.c attaching header page
[2010-07-26 15:29:32] DBUG stats/stats.c new node audio_samplerate (32000)
[2010-07-26 15:29:32] DBUG stats/stats.c new node audio_channels (2)
[2010-07-26 15:29:32] DBUG stats/stats.c new node audio_bitrate (96000)
[2010-07-26 15:29:32] DBUG stats/stats.c new node ice-bitrate (96)
[2010-07-26 15:29:32] DBUG stats/stats.c new node subtype (Vorbis)
[2010-07-26 15:29:32] INFO auth/auth.c adding client for authentication
[2010-07-26 15:29:32] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 2
[2010-07-26 15:29:32] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 15:29:32] DBUG auth/auth.c 1 client(s) pending on /vorbis.ogg
[2010-07-26 15:29:32] INFO auth_url/auth_url.c client auth (http://localhost/****/) failed with "no username and/or password provided"
[2010-07-26 15:29:32] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 1
[2010-07-26 15:29:32] DBUG fserve/fserve.c Adding client to file serving engine
[2010-07-26 15:29:32] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 15:29:32] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:32] DBUG stats/stats.c update node connections (2)
[2010-07-26 15:29:32] DBUG stats/stats.c update node clients (3)
[2010-07-26 15:29:32] DBUG stats/stats.c update node connections (3)
[2010-07-26 15:29:32] DBUG stats/stats.c update node client_connections (1)
[2010-07-26 15:29:32] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:32] DBUG stats/stats.c update node clients (3)
[2010-07-26 15:29:32] DBUG stats/stats.c update node connections (4)
[2010-07-26 15:29:32] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:32] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 15:29:33] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 15:29:33] DBUG stats/stats.c update node clients (1)
[2010-07-26 15:29:33] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:33] DBUG stats/stats.c update node connections (5)
[2010-07-26 15:29:33] DBUG stats/stats.c update node clients (1)
[2010-07-26 15:29:33] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:33] DBUG stats/stats.c update node connections (6)
[2010-07-26 15:29:33] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 15:29:33] EROR connection/connection.c HTTP request parsing failed
[2010-07-26 15:29:33] DBUG stats/stats.c update node clients (1)
[2010-07-26 15:29:33] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:33] DBUG stats/stats.c update node connections (7)
[2010-07-26 15:29:33] DBUG stats/stats.c update node clients (1)
[2010-07-26 15:29:35] DBUG stats/stats.c update node total_bytes_read (42281)
[2010-07-26 15:29:35] DBUG stats/stats.c update node total_bytes_sent (0)
[2010-07-26 15:29:36] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:36] DBUG stats/stats.c update node connections (8)
[2010-07-26 15:29:36] INFO auth/auth.c adding client for authentication
[2010-07-26 15:29:36] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 2
[2010-07-26 15:29:36] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 15:29:36] DBUG auth/auth.c 1 client(s) pending on /vorbis.ogg
[2010-07-26 15:29:36] INFO auth_url/auth_url.c client auth (http://localhost/****/) failed with "incorrect username and/or password provided"
[2010-07-26 15:29:36] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 1
[2010-07-26 15:29:36] DBUG fserve/fserve.c Adding client to file serving engine
[2010-07-26 15:29:36] DBUG stats/stats.c update node client_connections (2)
[2010-07-26 15:29:37] DBUG stats/stats.c update node clients (1)
[2010-07-26 15:29:39] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:39] DBUG stats/stats.c update node connections (9)
[2010-07-26 15:29:39] INFO auth/auth.c adding client for authentication
[2010-07-26 15:29:39] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 2
[2010-07-26 15:29:39] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 15:29:39] DBUG auth/auth.c 1 client(s) pending on /vorbis.ogg
[2010-07-26 15:29:39] DBUG stats/stats.c update node client_connections (3)
[2010-07-26 15:29:39] DBUG auth/auth.c max on /vorbis.ogg is 5 (cur 0)
[2010-07-26 15:29:39] DBUG auth/auth.c Added client to /vorbis.ogg
[2010-07-26 15:29:39] DBUG auth/auth.c client authenticated, passed to source
[2010-07-26 15:29:40] DBUG source/source.c Client added
[2010-07-26 15:29:40] INFO source/source.c listener count on /vorbis.ogg now 1
[2010-07-26 15:29:40] DBUG stats/stats.c update node listener_peak (1)
[2010-07-26 15:29:40] DBUG stats/stats.c update node listeners (1)
[2010-07-26 15:29:40] DBUG format/format.c processing pending client headers
[2010-07-26 15:29:40] DBUG stats/stats.c update node total_bytes_read (105846)
[2010-07-26 15:29:40] DBUG stats/stats.c update node total_bytes_sent (0)
[2010-07-26 15:29:40] DBUG stats/stats.c update node listeners (1)
[2010-07-26 15:29:40] DBUG stats/stats.c update node listener_connections (1)
[2010-07-26 15:29:45] DBUG stats/stats.c update node total_bytes_read (164988)
[2010-07-26 15:29:45] DBUG stats/stats.c update node total_bytes_sent (63528)
[2010-07-26 15:29:45] DBUG stats/stats.c update node clients (3)
[2010-07-26 15:29:45] DBUG stats/stats.c update node connections (10)
[2010-07-26 15:29:45] INFO auth/auth.c adding client for authentication
[2010-07-26 15:29:45] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 3
[2010-07-26 15:29:45] INFO auth/auth.c auth on /vorbis.ogg has 1 pending
[2010-07-26 15:29:45] DBUG auth/auth.c 1 client(s) pending on /vorbis.ogg
[2010-07-26 15:29:45] DBUG stats/stats.c update node client_connections (4)
[2010-07-26 15:29:45] DBUG fserve/fserve.c Adding client to file serving engine
[2010-07-26 15:29:45] DBUG auth/auth.c ...refcount on auth_t /vorbis.ogg is now 2
[2010-07-26 15:29:45] INFO auth/auth.c client 50 failed
[2010-07-26 15:29:45] DBUG stats/stats.c update node clients (2)
[2010-07-26 15:29:50] DBUG stats/stats.c update node total_bytes_read (224955)
[2010-07-26 15:29:50] DBUG stats/stats.c update node total_bytes_sent (122766)
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c adding EOS packet
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c flushing page
[2010-07-26 15:29:52] DBUG format-ogg/format_ogg.c releasing header pages
[2010-07-26 15:29:52] DBUG format-ogg/format_ogg.c releasing header pages
[2010-07-26 15:29:52] DBUG format-ogg/format_ogg.c freeing codecs
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c freeing vorbis codec
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c checking for vorbis codec
[2010-07-26 15:29:52] INFO format-vorbis/format_vorbis.c seen initial vorbis header
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c processing incoming header packet (1)
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c processing incoming header packet (2)
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c we have the header packets now
[2010-07-26 15:29:52] DBUG format-vorbis/format_vorbis.c Adding the 3 header packets
[2010-07-26 15:29:52] DBUG format-ogg/format_ogg.c attaching BOS page
[2010-07-26 15:29:52] DBUG format-ogg/format_ogg.c attaching header page
[2010-07-26 15:29:52] DBUG stats/stats.c delete node audio_bitrate
[2010-07-26 15:29:52] DBUG stats/stats.c delete node audio_channels
[2010-07-26 15:29:52] DBUG stats/stats.c delete node audio_samplerate
[2010-07-26 15:29:52] DBUG stats/stats.c new node audio_samplerate (32000)
[2010-07-26 15:29:52] DBUG stats/stats.c new node audio_channels (2)
[2010-07-26 15:29:52] DBUG stats/stats.c new node audio_bitrate (96000)
[2010-07-26 15:29:52] DBUG stats/stats.c update node ice-bitrate (96)
[2010-07-26 15:29:52] DBUG stats/stats.c new node artist (Coldplay)
[2010-07-26 15:29:52] DBUG stats/stats.c new node title (The Hardest Part)
[2010-07-26 15:29:52] DBUG stats/stats.c update node subtype (Vorbis)
[2010-07-26 15:29:55] DBUG stats/stats.c update node total_bytes_read (292314)
[2010-07-26 15:29:55] DBUG stats/stats.c update node total_bytes_sent (186923) |
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jul 27, 2010 2:16 pm Post subject: |
|
|
Maybe you are not allowing duplicate logins?
karl. |
|
| Back to top |
|
 |
mathijsie
Joined: 30 May 2010 Posts: 9
|
Posted: Fri Jul 30, 2010 9:26 am Post subject: |
|
|
Hi,
I've added the following line to my configuration file:
| Code: |
| <option name="allow_duplicate_users" value="1"/> |
And that seems to do the trick. Thanks for your help! |
|
| Back to top |
|
 |
|