Problem with external script
Paul TAVERNIER
paul.tavernier at ac-rouen.fr
Wed Nov 5 16:52:35 CET 2008
Hi
i have instantiate a script in /etc/freeradius/modules/exec
exec myldap {
wait = yes
program = "/etc/freeradius/exec/ldap.sh
%{%{Stripped-User-Name}:-%{User-Name}} %{NAS-IP-Address}"
input_pairs = request
shell_escape = yes
output_pairs = reply
}
this script (ldap.sh) is simply making an echo on stdout like this
radiusClass=<value>
radiusFramedIPAddress=<value>
...
I then inserted it in the radiusd.conf
post_proxy {
...
myldap
...
}
It runs the script but the output is never "used" after, and Freeradius
doesn't want to "expand" the variables...
I surely missed somthing...
---------(output part of freeradius -X)
+- entering group post-proxy {...}
expand: %{Stripped-User-Name} -> user1
expand: %{%{Stripped-User-Name}:-%{User-Name}} -> user1
expand: %{NAS-IP-Address} -> 192.168.1.2
Exec-Program output: radiusFramedIPAddress=1.2.3.4 radiusClass=mymaingroup
Exec-Program-Wait: plaintext: radiusFramedIPAddress=1.2.3.4
radiusClass=mymaingroup
Exec-Program: returned: 0
++[myldap] returns ok
Many thanks in advance for any help...
Paul
--
============================
Paul TAVERNIER
Equipe Reseaux-Securite
Division Informatique
Rectorat de ROUEN
More information about the Freeradius-Users
mailing list