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 

[Help] Settings Auth URL

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



Joined: 31 Dec 2007
Posts: 17

PostPosted: Thu Feb 07, 2008 4:00 pm    Post subject: [Help] Settings Auth URL Reply with quote

hello
i would like to know how to secure my video streaming with the "url method" and let only my forum's members access to it.

Icecast.XML
Code:

<icecast>
    <!-- This is a simple example of using the url authenticator. -->
    <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>
        <burst-on-connect>1</burst-on-connect>
        <burst-size>65535</burst-size>
    </limits>
    <authentication>
        <source-password>XXXXXXX</source-password>
        <relay-password>XXXXXXXX</relay-password>
        <admin-user>XXXXXXXX</admin-user>
        <admin-password>XXXXXXXXX</admin-password>
    </authentication>
    <hostname>91.121.107.194</hostname>
    <listen-socket>
        <port>8000</port>
    </listen-socket>
   <mount>
<mount-name>/Stream01.nsv</mount-name>
<authentication type="url">
   <option name="add"    value="http://wrestling-media.net/icecast/action.php"/>
   <option name="remove" value="http://wrestling-media.net/icecast/action.php"/>
   <option name="start" value="http://wrestling-media.net/icecast/action.php"/>
   <option name="end" value="http://wrestling-media.net/icecast/action.php"/>
   <option name="username" value="user"/>
   <option name="password" value="pass"/>
   <option name="auth_header" value="icecast-auth-user: 1"/>
</authentication>
</mount>
   <relay>
        <server>127.0.0.1</server>
        <port>8030</port>
        <mount>/;stream.nsv</mount>
        <local-mount>/Stream01.nsv</local-mount>
        <on-demand>0</on-demand>
        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
    </relay>
    <fileserve>1</fileserve>
    <paths>
        <basedir>./</basedir>
        <logdir>./logs</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
         <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
    </logging>
</icecast>


i dont know how to do it, it would be very kind to help me.

Thanks You
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Feb 07, 2008 4:29 pm    Post subject: Reply with quote

Those option names are the very original ones, the names used in 2.3.1 are listener_add, listener_remove, mount_add, mount_remove. I obviously cannot comment on what the actual php files do but providing they check the user credentials then you should be fine.

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



Joined: 31 Dec 2007
Posts: 17

PostPosted: Thu Feb 07, 2008 7:21 pm    Post subject: Reply with quote

Code:
   
<mount>
        <mount-name>/Stream01.nsv</mount-name>
        <authentication type="url">
            <option name="mount_add"       value="http://wrestling-media.net/icecast/action.php"/>
            <option name="mount_remove"    value="http://wrestling-media.net/icecast/action.php"/>
            <option name="listener_add"    value="http://wrestling-media.net/icecast/action.php"/>
            <option name="listener_remove" value="http://wrestling-media.net/icecast/action.php"/>
        </authentication>
    </mount>


and now how can i get my forum's member to connect with their personnal identifiant (from my forum)
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Feb 07, 2008 9:12 pm    Post subject: Reply with quote

I'm assuming you want the playlist to refer to the url for the stream like http://user:pass@host:8000/stream.ogg

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



Joined: 31 Dec 2007
Posts: 17

PostPosted: Thu Feb 07, 2008 9:36 pm    Post subject: Reply with quote

yes,

If I created a user with the php script (icecast_auth-1.0.tar) it works
( http://User:Pass@IP:Port/Mount.nsv)

But I would like the member logs into the stream with their user names and passwords Vbulletin Confused
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Feb 07, 2008 10:01 pm    Post subject: Reply with quote

so your php script needs to look at the vbulletin tables for user/pass details instead of the sample one in the tar file.

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



Joined: 31 Dec 2007
Posts: 17

PostPosted: Thu Feb 07, 2008 10:34 pm    Post subject: Reply with quote

is there something has changed ?

Vbulletin table that stores the ID and "user" is this table that stores user names and passwords
Back to top
View user's profile Send private message
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