| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Thu Jun 12, 2008 10:49 pm Post subject: listener authentication 4 static content (<fileserve>) |
|
|
Hi there,
I'd like to use "listener authentication" just for static content for ogg files uploaded to Icecast server and enabled by <fileserve> 1 </fileserv>. Therefore I read the Listener Authentication documentation @ http://www.icecast.org/docs/icecast-2.3.1/icecast2_listenerauth.html. After I have configured the authentication in the mountpoint realm of icecast.xml I tried to create userid and password by calling the Admin Stats page. But I could not find any active mountpoint to be configured. The documentation mentioned only active mountpoints will be shown.
My question is how to activate a mountpoint pointing to static fileserve content?
After connecting to the mountpoint in listening mode with firefox or vlc I got an authentication request for this static content. Because I could not created any user via the admin page I tried to create a user by manually calling htpasswd
| Code: |
| htpasswd -c -m myauth testuser |
Anyhow I still was not able to authenticate for this mountpoint. Even I pointed to the absolute path of the myauth file I did not have success. Icecast did not accept my user credentials.
Any Idea?
my icecast.xml:
| Code: |
<icecast>
<limits>
<clients>120</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>
<authentication>
<source-password> ****</source-password>
<relay-password>****</relay-password>
<admin-user>admin</admin-user>
<admin-password>****</admin-password>
</authentication>
<hostname>hostname.tld</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<mount>
<mount-name>/video/scotland/highlands.ogg</mount-name>
<max-listeners>50</max-listeners>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
<paths>
<basedir>/usr/share/icecast2</basedir>
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- <logarchive>1</logarchive> -->
</logging>
<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
|
The path
| Code: |
| <mount-name>/video/scotland/highlands.ogg</mount-name> |
is realtiv to <webroot> and points to my static content.
regard
ol2tmx |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jun 13, 2008 12:36 am Post subject: |
|
|
icecast is mainly for streaming content, not really static/on-demand content, the auth mechanism will work but the admin page will currently only the list for streams, not files.
You should be able to use a manual addition by editing the file as icecast will re-read it automatically, but check the error log for any errors (the file name you have specified assumes the current directory).
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri Jun 13, 2008 9:18 am Post subject: |
|
|
Hi Karl,
if I understand you right I can manually create a auth file with htpasswd and this auth file has to be put into the same directory where my video file is situated? Does the encryption mechanism such as md5, crypt, ... matter for the usage with icecast listener authentication? BTW I am using Icecast2 2.3.1-5 @ Debian Etch.
ol2tmx |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jun 13, 2008 1:30 pm Post subject: |
|
|
The encryption is md5. As for the location of the authentication, that is define by the value of filename option. If no path component is specified then the current directory (of the icecast process) is used.
You really don't want the authentication file to be in webroot, just as you would not want your passwords in the apache htdocs directory
karl. |
|
| Back to top |
|
 |
|