external auth script
Janis Heller
janis.heller at outlook.de
Thu Jul 21 22:21:53 CEST 2016
I would like to use RADIUS to process the authentification of users to my VPN servers using a PHP script which is called by RADIUS processing the auth process.
For this reason I added the following part into my exec file:
exec { wait = yes program = "/usr/bin/php -f /usr/local/auth.php %{User-Name} %{User-Password}" input_pairs = request shell_escape = yes timeout = 10 }
When I test the script by executing:
radtest testing password localhost -4 testing123
I get this error:
(0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
I attached my
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default.conf
Type: application/octet-stream
Size: 27834 bytes
Desc: default.conf
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160721/9993b32f/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160721/9993b32f/attachment-0001.txt>
More information about the Freeradius-Users
mailing list