Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Authentication issue

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
keyboard1973



Joined: 20 Feb 2010
Posts: 4

PostPosted: Sat Feb 20, 2010 4:53 pm    Post subject: Authentication issue Reply with quote

Hello,

I am having a problem and I am not sure where the issue lies. My Icecast is working. I wanted to authenticate users on the mount point. When I go to the icecast status page the mount point shows a lock next to it so I believe the config is right. When I click listen I go to the Authorization page and get prompted for the username and password. This is where the issue is, it does not recognize my user or pass , it does not matter what I enter. I can leave it blank and it will still pop up an opening box but the source or playlist is not mine it seems to be a default. What it offers is buildm3u, any help or suggestions would be appreciated. Here is my icecast config.

Thank you,

Keith


XDesktop:~/icesconfig trunkmonkey2$ cat icecast.xml.authentication
<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>

<mount>
<mount-name>/Users/trunkmonkey2/Music/Playlists</mount-name>
<authentication type="htpasswd">
<option name="filename" value="/home/icesconfig/htpasswd" />
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>


<authentication>
<!-- Sources log in with username 'source' -->
<source-password>password</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>password</admin-password>
</authentication>

<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>192.168.2.151</hostname>

<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>192.168.2.151</bind-address>-->

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>192.168.2.151</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->

<!--<master-server></master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->

<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->



<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/local/share/icecast</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<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 -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>

<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>root</user>
<group>admin</group>
</changeowner>
-->
</security>
</icecast>
Back to top
View user's profile Send private message Send e-mail
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Feb 20, 2010 5:47 pm    Post subject: Reply with quote

check your error log, maybe there is an issue with the htpasswd file, eg it may not exist

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
keyboard1973



Joined: 20 Feb 2010
Posts: 4

PostPosted: Sun Feb 21, 2010 7:44 pm    Post subject: authentication Reply with quote

Hi Karl,

Thanks for the reply I do appreciate the help. So you know I only have 2 years of linux under my belt so I may be over looking something little here. I thought I had everything covered because its all working except the mount point authentication. Another thing happening is when I go under the admin page I log in and it authenticates fine. Under manage authentication when adding a user and password after clicking add new user.. nothing shows next to User ID, perhaps nothing should be there on the web page? I thought it might be related. I did previously create a htpasswd file and placed it in the same directory as the icecast.xml file. Here is what my directory looks like. I don't believe there is a permissions issue. This is also running under OS X darwin.

drwxr-xr-x 19 trunkmon wheel 646 Feb 20 22:35 .
drwxr-xr-x 90 trunkmon wheel 3060 Feb 20 22:35 ..
-rw-r--r-- 1 trunkmon wheel 12292 Dec 29 2008 .DS_Store
-rwxr-xr-x 1 trunkmon wheel 7277 Feb 16 16:17 access.log
-rwxr-xr-x 1 trunkmon wheel 0 Feb 20 21:16 error.log
-rwxr-xr-x 1 trunkmon wheel 55 Feb 20 01:52 htpasswd
-rwxr-xr-x 1 trunkmon wheel 6278 Feb 20 22:35 icecast.xml
-rwxr-xr-x 1 trunkmon wheel 4999 Feb 20 22:02 icecast.xml.authentication
-rwxr-xr-x 1 trunkmon wheel 5008 Feb 20 21:13 icecast.xml.authentication.bak1
-rw-r--r-- 1 trunkmon wheel 6898 Feb 15 22:47 icecast.xml.authentication2
-rwxr-xr-x 1 trunkmon wheel 6892 Feb 15 05:33 icecast.xml.bak
-rw-r--r-- 1 trunkmon wheel 6868 Feb 20 00:21 icecast.xml.thisone
-rwxr-xr-x 1 trunkmon wheel 6887 Feb 16 16:05 icecast.xml.without.auth
-rwxrwxrwx 1 trunkmon wheel 1305 Feb 15 15:49 ices.conf.dist
-rw-r--r-- 1 trunkmon wheel 39 Feb 15 05:22 myauth
-rw-r--r-- 1 trunkmon wheel 2124 Nov 2 2008 playlist
-rw-r--r-- 1 trunkmon wheel 106 Oct 15 2008 playlist.txt
-rw-r--r-- 1 trunkmon wheel 1561 Feb 15 03:49 playlist2
-rw-r--r-- 1 trunkmon wheel 889 Dec 17 2008 playlist2.bak

Thank you,

Keith
Back to top
View user's profile Send private message Send e-mail
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 21, 2010 8:51 pm    Post subject: Reply with quote

I still don't see the contents of the error log.

BTW, /Users/trunkmonkey2/Music/Playlists sounds like an unusual streaming mountpoint, are you sure that is what you intended?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
keyboard1973



Joined: 20 Feb 2010
Posts: 4

PostPosted: Sun Feb 21, 2010 10:55 pm    Post subject: Path Reply with quote

That is the path where the music is located I have the mp3's and the playlist in 2 different locations. I also issued pwd to double check my locations before entering them in the config. Also everything works, the music streams just the authentication issue. Here is the error.log I am posting the last 100 lines.

XDesktop:/usr/local/var/log/icecast trunkmonkey2$ tail -100 error.log
[2010-02-21 17:52:25] DBUG stats/modify_node_event update node total_bytes_read (1614928000)
[2010-02-21 17:52:25] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:52:30] DBUG stats/modify_node_event update node total_bytes_read (1615038600)
[2010-02-21 17:52:30] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:52:35] DBUG stats/modify_node_event update node total_bytes_read (1615149200)
[2010-02-21 17:52:35] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:52:40] DBUG stats/modify_node_event update node total_bytes_read (1615259800)
[2010-02-21 17:52:40] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:52:45] DBUG stats/modify_node_event update node total_bytes_read (1615370400)
[2010-02-21 17:52:45] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:52:50] DBUG stats/modify_node_event update node total_bytes_read (1615476800)
[2010-02-21 17:52:50] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:52:55] DBUG stats/modify_node_event update node total_bytes_read (1615570454)
[2010-02-21 17:52:55] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:00] DBUG stats/modify_node_event update node total_bytes_read (1615653200)
[2010-02-21 17:53:00] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:05] DBUG stats/modify_node_event update node total_bytes_read (1615796000)
[2010-02-21 17:53:05] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:10] DBUG stats/modify_node_event update node total_bytes_read (1615940200)
[2010-02-21 17:53:10] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:15] DBUG stats/modify_node_event update node total_bytes_read (1616074600)
[2010-02-21 17:53:15] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:20] DBUG stats/modify_node_event update node total_bytes_read (1616218800)
[2010-02-21 17:53:20] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:24] DBUG slave/_slave_thread checking master stream list
[2010-02-21 17:53:25] DBUG stats/modify_node_event update node total_bytes_read (1616365800)
[2010-02-21 17:53:25] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:30] DBUG stats/modify_node_event update node total_bytes_read (1616504400)
[2010-02-21 17:53:30] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:35] DBUG stats/modify_node_event update node total_bytes_read (1616619200)
[2010-02-21 17:53:35] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:40] DBUG stats/modify_node_event update node total_bytes_read (1616734000)
[2010-02-21 17:53:40] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:45] DBUG stats/modify_node_event update node total_bytes_read (1616840400)
[2010-02-21 17:53:45] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:50] DBUG stats/modify_node_event update node total_bytes_read (1616955200)
[2010-02-21 17:53:50] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:53:55] DBUG stats/modify_node_event update node total_bytes_read (1617061600)
[2010-02-21 17:53:55] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:00] DBUG stats/modify_node_event update node total_bytes_read (1617172200)
[2010-02-21 17:54:00] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:05] DBUG stats/modify_node_event update node total_bytes_read (1617282800)
[2010-02-21 17:54:05] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:10] DBUG stats/modify_node_event update node total_bytes_read (1617427000)
[2010-02-21 17:54:10] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:15] DBUG stats/modify_node_event update node total_bytes_read (1617569800)
[2010-02-21 17:54:15] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:20] DBUG stats/modify_node_event update node total_bytes_read (1617705600)
[2010-02-21 17:54:20] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:25] DBUG stats/modify_node_event update node total_bytes_read (1617848400)
[2010-02-21 17:54:25] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:30] DBUG stats/modify_node_event update node total_bytes_read (1617995400)
[2010-02-21 17:54:30] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:35] DBUG stats/modify_node_event update node total_bytes_read (1618135400)
[2010-02-21 17:54:35] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:40] DBUG stats/modify_node_event update node total_bytes_read (1618250200)
[2010-02-21 17:54:40] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:45] DBUG stats/modify_node_event update node total_bytes_read (1618352400)
[2010-02-21 17:54:45] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:50] DBUG stats/modify_node_event update node total_bytes_read (1618471400)
[2010-02-21 17:54:50] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:54:55] DBUG stats/modify_node_event update node total_bytes_read (1618586200)
[2010-02-21 17:54:55] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:00] DBUG stats/modify_node_event update node total_bytes_read (1618696800)
[2010-02-21 17:55:00] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:05] DBUG stats/modify_node_event update node total_bytes_read (1618803200)
[2010-02-21 17:55:05] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:10] DBUG stats/modify_node_event update node total_bytes_read (1618913800)
[2010-02-21 17:55:10] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:15] DBUG stats/modify_node_event update node total_bytes_read (1619056600)
[2010-02-21 17:55:15] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:20] DBUG stats/modify_node_event update node total_bytes_read (1619196600)
[2010-02-21 17:55:20] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:24] DBUG slave/_slave_thread checking master stream list
[2010-02-21 17:55:25] DBUG stats/modify_node_event update node total_bytes_read (1619331000)
[2010-02-21 17:55:25] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:30] DBUG stats/modify_node_event update node total_bytes_read (1619475200)
[2010-02-21 17:55:30] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:35] DBUG stats/modify_node_event update node total_bytes_read (1619618000)
[2010-02-21 17:55:35] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:40] DBUG stats/modify_node_event update node total_bytes_read (1619753800)
[2010-02-21 17:55:40] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:45] DBUG stats/modify_node_event update node total_bytes_read (1619858966)
[2010-02-21 17:55:45] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:50] DBUG stats/modify_node_event update node total_bytes_read (1619958200)
[2010-02-21 17:55:50] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:55:55] DBUG stats/modify_node_event update node total_bytes_read (1620073000)
[2010-02-21 17:55:55] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:56:00] DBUG stats/modify_node_event update node total_bytes_read (1620179400)
[2010-02-21 17:56:00] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:56:05] DBUG stats/modify_node_event update node total_bytes_read (1620290000)
[2010-02-21 17:56:05] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:56:10] DBUG stats/modify_node_event update node total_bytes_read (1620409000)
[2010-02-21 17:56:10] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:56:15] DBUG stats/modify_node_event update node total_bytes_read (1620514326)
[2010-02-21 17:56:15] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:56:20] DBUG stats/modify_node_event update node total_bytes_read (1620592400)
[2010-02-21 17:56:20] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2010-02-21 17:56:25] DBUG stats/modify_node_event update node total_bytes_read (1620669974)
[2010-02-21 17:56:25] DBUG stats/modify_node_event update node total_bytes_sent (0)


Thanks Karl,


Keith
Back to top
View user's profile Send private message Send e-mail
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 21, 2010 11:44 pm    Post subject: Reply with quote

You look to be confusing things. I think you are assuming the icecast is a source client as well as a server, it is not. The source client (which _may_ reside on the same machine) processes any playlists or dsp inputs and sends that stream to icecast. The source client does not care about how the listeners authenticate.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
keyboard1973



Joined: 20 Feb 2010
Posts: 4

PostPosted: Mon Feb 22, 2010 2:52 am    Post subject: Listners Reply with quote

So is the authentication only between ices and iceast? is there a way to authenticate listeners. I assume this could be don't with URL authentication?

Thanks again,

Keith
Back to top
View user's profile Send private message Send e-mail
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Feb 22, 2010 3:07 am    Post subject: Reply with quote

there has to be authentication between source client and icecast, but it is optional between icecast and listener. url and htpasswd is support for listener auth but you need to define your mountpoint yet or else icecast won't which stream to apply the auth on

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber