Am 06.11.2011 12:26, schrieb Alexander:
> Hello,
>
> My idea was to provide users ability to use their login/password from
> the website in streamer for live broadcasts.
>
> I found this tutorial for harbour implementation:
> http://wiki.sourcefabric.org/display/LS/Harbor+mysql+authentication
>
> It is VERY cool, but, i found some problems.
> SCENARIO DESCRIPTION: 1. User enters his $login into "mountID" field &
> $password into "password" fields in the streamer. 2. User connects to
> the harbour. PROBLEMS: in the check_client(user,password) function,
> "user" parameter is always equal string "source". if i don't specify
> the 1st parameter for input.harbour, compiler displays to me an error:
> If while loggin in the first parameter for input.harbour differs value
> user has in the streamer "mountID" field connection fails...
> QUESTIONS: Is there a way to provide users ability to log in by
> login/password to the harbour... and how can i do this? How can i
> check not only password but login & password together? How can i
> specify input.harbour without first parameter?
>
> Thank you in advance!
>
> -- 
> Kind regards,
> Alexander.
>
hi alexander,
afaik it is not implemented to check the mount in the
harbor-auth-function, but you can check the login name, as well as the
password. most streaming clients submit "source" as the login, but
sometimes it is possible to setup a login name, too. liquidsoap checks
this already. if you want to use them in the php authentification
function you should modify your liquidsoapfunction from

get_process_lines("/path/yourauth.php #{password}")


to

get_process_lines("/path/yourauth.php #{user} #{password}")

you have to modify your php script, too, to get 2 parameters from
command line ($user = $args[1]; $password = $args[2];)...
this would work out. remember: the php-script in this example only
returns 3 values, error, unknown and the djname (the client). you will
have to modify this function and the liquidsoap function to your needs.

leave me a note, if you get stuck.

cheers,
mccurly
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to