[Icecast] problem using icecast 2 Listener Authentication
Pierpaolo Gulla
airteknology at gmail.com
Wed May 28 18:20:52 UTC 2008
Hi guys ,
I'm using with satisfaction icecast2 for streaming vorbis and theora
using oggfwd.
Now i want to try the authentication of icecast and I'm following this
guide:
http://www.icecast.org/docs/icecast-2.3.1/icecast2_listenerauth.html
I'm using the HTPASSWD Listener Authentication , and I add this line to
my icecast config files:
<mount>
<mount-name>/testmount.ogg</mount-name>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
All works ok , the stream with testmount.ogg has the lock , but when I
go to the admin web page for manage the user , when I try to add user I
have an error , to see the error.log , that I post:
[2008-05-28 20:01:55] INFO auth/auth_run_thread Authentication thread started
[2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg)
[2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
[2008-05-28 20:02:16] INFO connection/_handle_source_request Source logging in at mountpoint "/testmount.ogg"
[2008-05-28 20:02:16] INFO format-theora/initial_theora_page seen initial theora header
[2008-05-28 20:02:16] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /key.png (/usr/local/share/icecast/web/key.png)
[2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg)
[2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
[2008-05-28 20:02:22] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg)
[2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
[2008-05-28 20:02:32] INFO admin/admin_handle_request Received admin command buildm3u on mount "/testmount.ogg"
[2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /key.png (/usr/local/share/icecast/web/key.png)
[2008-05-28 20:03:00] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg)
[2008-05-28 20:03:00] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
[2008-05-28 20:03:03] INFO admin/admin_handle_request Received admin command manageauth.xsl on mount "/testmount.ogg"
[2008-05-28 20:03:03] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth
[2008-05-28 20:03:04] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2008-05-28 20:03:04] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2008-05-28 20:03:04] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2008-05-28 20:03:05] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2008-05-28 20:03:05] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg)
[2008-05-28 20:03:05] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
[2008-05-28 20:03:09] INFO admin/admin_handle_request Received admin command manageauth.xsl on mount "/testmount.ogg"
[2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth
[2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_adduser Failed to open authentication database "myauth": Permission denied
[2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth
[2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css)
[2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png)
[2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg)
[2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg)
[2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg)
What's my error ??
I think that is on my xml config files , in particular here:
<mount>
<mount-name>/example.ogg</mount-name>
<authentication type="htpasswd">
<option name="filename" value="myauth"/> <-- this myauth
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
What's the meaning and the functions of myauth?
Big thanks for your help
Goodbye
Pierpaolo
More information about the Icecast
mailing list