external script problem

Tarık Kabak tarikkabak at gmail.com
Thu Sep 20 19:00:01 CEST 2012


Hello again,

Thanks for your help. So external script support is possible for only
PAP? I wanted to authenticate windows 7 wireless interfaces via radius
server cause of an old/non-supported sql db so i had to use my own
external/customized php script.


2012/9/20 Alan DeKok <aland at deployingradius.com>

> Tarık Kabak wrote:
> > we are trying to external php script to authenticate user pass.
> > radius return access-accept to nas but client ask user pass again ...
>
>   Read scripts/exec-program-wait.
>
> > script;
> >
> > <?php
> >   $user = getenv("USER_NAME");
> >   $password = getenv("USER_PASSWORD");
> >
> >
> > echo "Access-Accept\n";
>
>   Huh?  Why is that there?
>
> > ?>
> >
> > exec module;
> >
> > exec {
> >     wait = yes
> >     program = "/usr/local/bin/php-5.3 /etc/raddb/php.php %{User-Name}
> > %{User-Password}"
>
>   So... you're putting the password on the command line, and also using
> getenv() to get it?
>
>   I would suggest clarifying how PHP works.
>
> >     input_pairs = request
> >     output_pairs = reply
> >     shell_escape = yes
> > }
>
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120920/5563d498/attachment.html>


More information about the Freeradius-Users mailing list