Difference between revisions of "Icecast URL Auth"

From Giss
(New page: Draft to authenticate sources against mysql <mount> <mount-name>/*.ogg</mount-name> <authentication type="url"> <option name="stream_auth" value="htt...)
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Draft to authenticate sources against mysql
+
'''Draft to authenticate sources against mysql'''
 +
 
 +
In icecast.xml:
  
 
     <mount>
 
     <mount>
 
         <mount-name>/*.ogg</mount-name>
 
         <mount-name>/*.ogg</mount-name>
 
         <authentication type="url">
 
         <authentication type="url">
             <option name="stream_auth"   value="http://server/script.php"/>
+
             <option name="stream_auth" value='http://giss.tv/auth.php'/>
 +
            <option name="user" value='source'/>
 +
            <option name="pass" value='pass'/>
 
         </authentication>
 
         </authentication>
 
     </mount>
 
     </mount>
  
One script.php to allow all mounts and user/pass could be:
+
One script.php to allow all mountpoints and any user/pass could be:
  
 
  <?php
 
  <?php
 
  header('icecast-auth-user: 1');
 
  header('icecast-auth-user: 1');
 
  ?>
 
  ?>
 +
 +
To test it:
 +
 +
gst-launch-0.10 videotestsrc ! "video/x-raw-yuv",width=320,height=240 ! theoraenc quality=6
 +
keyframe-force=6 ! oggmux name=mux ! shout2send ip=server port=8000 password=something mount=test.ogg

Latest revision as of 11:48, 14 October 2010

Draft to authenticate sources against mysql

In icecast.xml:

   <mount>
        <mount-name>/*.ogg</mount-name>
        <authentication type="url">
            <option name="stream_auth" value='http://giss.tv/auth.php'/>
            <option name="user" value='source'/>
            <option name="pass" value='pass'/>
       </authentication>
   </mount>

One script.php to allow all mountpoints and any user/pass could be:

<?php
header('icecast-auth-user: 1');
?>

To test it:

gst-launch-0.10 videotestsrc ! "video/x-raw-yuv",width=320,height=240 ! theoraenc quality=6
keyframe-force=6 ! oggmux name=mux ! shout2send ip=server port=8000 password=something mount=test.ogg