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 

Relay Authentication

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



Joined: 20 Oct 2009
Posts: 8

PostPosted: Fri Feb 15, 2013 4:49 pm    Post subject: Relay Authentication Reply with quote

I've used authentication type="url" on mount's, but I don't see anything comparable for relays. Is there anything in the KH builds (perhaps undocumented) that allows user authentication on relays?

Thanks in advance.
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 Feb 15, 2013 9:28 pm    Post subject: Reply with quote

relays are on mountpoints, always have been. just as say max-listeners applies to mounts whether they are from source clients or relays, authenticiation also applies to mounts in the same way.

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



Joined: 20 Oct 2009
Posts: 8

PostPosted: Fri Feb 15, 2013 9:42 pm    Post subject: Reply with quote

Thanks for your reply, Karl, but I'm not sure I understand your response. Maybe I'm missing something.

Seems reasonable (to me at least) that you might want to authenticate players connecting to <relay> points but I don't see anything in the documentation that allows for this. The authentication only seems to be a valid node within a <mount>.

For example, this is how I'd want/imagine my relay to look:
Code:
<relay>
    <server>ingress.server.com</server>
    <port>80</port>
    <mount>/stream1</mount>
    <local-mount>/stream1</local-mount>
    <authentication type="url">
        <option name="listener_add" value="http://myauthserver.com/scripts/add_listener.php"/>
    </authentication>
</relay>
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 Feb 15, 2013 9:48 pm    Post subject: Reply with quote

so you want the <relay> block without authentication and then

<mount>
<mount-name>/stream1</mount-name>
<authentication type="url">
<option name="listener_add" value="http://myauthserver.com/scripts/add_listener.php"/>
</authentication>
<mount>

as you can see, authentication for the mount belongs in the mount.

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



Joined: 20 Oct 2009
Posts: 8

PostPosted: Fri Feb 15, 2013 10:15 pm    Post subject: Reply with quote

Thanks Karl -- I'll try that. I didn't realize you could have a <relay> and a <mount> for the same stream on the same server.
Back to top
View user's profile Send private message
square_eyes



Joined: 18 Oct 2011
Posts: 83

PostPosted: Sat Feb 16, 2013 1:13 pm    Post subject: Reply with quote

I think a good way of explaining it is that mount settings are for defining additional config for connected (or potentially connected) sources, which include relays configured in the relay section, as well as traditional sources.

You actually don't have to define a mount for Icecast to host a source and you listen to it.

It's only when you introduce authentication, fallback or want to define things like meta data (stream title, bitrate etc) that you need to define a mount. Even then, your source is probably sending that meta data any way.
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