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 

Confi Icecast 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: Fri Mar 21, 2008 12:29 am    Post subject: Confi Icecast Auth URL Reply with quote

Hello,

trying for a long time to set up the url auth

Here is what I did icecast.xml:

Code:

<mount>
        <mount-name>/live.nsv</mount-name>
        <authentication type="url">
            <option name="mount_add"       value="http://www.wresting-media.net/auth.php"/>
            <option name="mount_remove"    value="http://www.wresting-media.net/auth.php"/>
            <option name="listener_add"    value="http://www.wresting-media.net/auth.php"/>
            <option name="listener_remove" value="http://www.wresting-media.net/auth.php"/>
        </authentication>
</mount>


Now I would like to know what php code to put on Auth.php Allow for the connection since my forum

Code:

<?php
icecast-auth-user: 1
action=mount_add&mount=/live&server=86.208.111.107&port=8000
action=mount_remove&mount=/live&server=86.208.111.107&port=8000
action=listener_add&server=86.208.111.107&port=8000&client=1&mount=/live&user=&pass=&ip=www.wrestling-media.net&agent="My%20player"
action=listener_remove&server=86.208.111.107&port=8000&client=1&mount=/live&user=&pass=&duration=3600
?>



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


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 21, 2008 2:04 am    Post subject: Reply with quote

The whole idea of url auth is to allow customization, the fact that we don't know what you want exactly from the php means no one can write it for you. All I can say is that the listener_add invocation is required to return the header you have mentioned to allow the listener to retrieve the stream. How you determine whether that listener is authenticated is up to you, usually people will just refer to the user and pass values passed in the POST.

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





PostPosted: Sat Mar 22, 2008 4:17 pm    Post subject: Reply with quote

I take it you want to integrate the authentication with the forum?

See me on MSN - msn@footyonline.tv. I may have what your after
Back to top
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