[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re:
From: Alan DeKok <aland () deployingradius ! com>
Date: 2013-11-30 16:13:37
Message-ID: 529A0EB1.90508 () deployingradius ! com
[Download RAW message or body]
Adnan Miljkovic wrote:
> I am trying to use exec to check if a user in valid in a custom PHP
> script, what I would like is to get multiple attributes returned.
That should be possible.
> The check-user.php script I would like to output the following:
> =======================================================================
>
> <?php
Uh... you do realize that syntax is only for web pages, right?
The script that FreeRADIUS runs *must* be a valid executable. i.e. if
you can't run it from the command line, then FreeRADIUS can't run it either.
You'll have to replace that line with the typical shell script header:
#!/path/to/php
But using the real path, not that string above.
The "chmod +x" the script. AND test to see if you can run it from the
command line:
$ ./script user password
You should get the attributes printed out.
> What is the correct way to return multiple attributes in PHP
Use a real shell script, not a snippet from a web page.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic