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 

URL Authentification

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



Joined: 28 Jan 2012
Posts: 1

PostPosted: Sat Jan 28, 2012 5:44 pm    Post subject: URL Authentification Reply with quote

Salut tout le monde!

J'ai installé un serveur Icecast (version 2.3.2) et tout fonctionne parfaitement. Le seul souci c'est que je n'arrive pas à faire marcher l'authentification par URL.
Dans mon fichier /etc/icecast2/icecast.xml j'ai mis
Code:
    <mount>
        <mount-name>/boby.ogg</mount-name>
                <authentication type="url">
                <option name="listener_add" value="http://www.mapage.fr/listener_joined.php"/> <!-- Bien entendu j'ai mis une URL valide -->
                <option name="username" value="user"/>
                <option name="password" value="pass"/>
                <option name="auth_header" value="icecast-auth-user:1"/>
    </mount>


Et mon fichier listener_joined.php contient simplement
Code:
<?php

        header('icecast-auth-user:1'); //je ferai ensuite un test sur l'ip de l'auditeur

?>


Le problème c'est que lorsque je lance le flux avec VLC, il me demande un login et un password (qui ne sont pas "user" et "pass"), et ce même si j'enlève la partie concernant ces paramètres dans le fichier icecast.xml.

Voilà, si vous pouvez m'aider ou m'envoyer une page d'aide sur l'authentification ça aussi serait sympa parce que je pense avoir fait ce qu'indiquait l'aide officielle.
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed May 23, 2012 5:33 pm    Post subject: Reply with quote

Bonjour,

En général, ces problèmes d'authentification sont soit tr-ès simples à résoudre (si le modèle d'authentification est relativement simple), soit nécessitent de tracer en debug (authentification distante en php avec base de données).

Si VLC réclame une authentification et que ça bloque, il est probable soit qu ela méthod ene retourne pas les bons arguments, ou pas dans le bon ordre.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Forum Francophone 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