external script reply
Hegedus Gabor
hegedus.gabor at euroway.hu
Sat Dec 20 09:53:56 CET 2008
tnt at kalik.net írta:
>> What have to change, cos the Group-Id is not sent.
>>
>
> Can you post the configuration of exec module that calls you script.
> There should be output = reply in it.
>
> Ivan Kalik
> Kalik Informatika ISP
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
Hi here is the config and debug:
php script:(this is the only output)
echo "Tunnel-Private-Group-Id = ".$tunelPrivGrId."\n";
exec file:
exec {
wait = yes
input-pairs = request
shell-escape = yes
output = reply
}
exec get-vlan{
wait = yes
program = "/usr/local/etc/raddb/scripts/getvlan.php %{mschap:User-Name}"
input-pairs = request
output = reply
packet-type = Access-Accept
shell-escape = yes
}
debug:
+- entering group post-auth {...}
[get-vlan] expand: %{mschap:User-Name} -> Hege
Exec-Program output: Tunnel-Private-Group-Id = vlan20
Exec-Program-Wait: value-pairs: Tunnel-Private-Group-Id = vlan20
Exec-Program: returned: 0
++[get-vlan] returns ok
} # server inner-tunnel
[peap] Got tunneled reply code 2
EAP-Message = 0x03090004
Message-Authenticator = 0x00000000000000000000000000000000
User-Name = "TEST\\Hege"
[peap] Got tunneled reply RADIUS code 2
EAP-Message = 0x03090004
Message-Authenticator = 0x00000000000000000000000000000000
User-Name = "TEST\\Hege"
[peap] Tunneled authentication was successful.
[peap] SUCCESS
thank you, Gabor
More information about the Freeradius-Users
mailing list