rlm_exec and 'No such file or directory' error

Alan DeKok aland at deployingradius.com
Wed Nov 17 20:55:09 CET 2010

mark.leese at stfc.ac.uk wrote:
> I have the exec module enabled in the instantiate section of radiusd.conf and I have the following at the end of the authorize section in the sites-enabled/default file:
>     if (control:Auth-Type == LDAP) {
>       update control {
>         Auth-Type = `%{exec:/etc/raddb/facilityUsers.pl %{control:Ldap-UserDn} %{control:Auth-Type}}`

  Please read "man unlang".

  What you have configured here is:

1) run the "exec" module to get some output via %{exec:...}
2) run the resulting data as a program via `...`

  That's likely not what you want.  Use double quotes instead of

  Alan DeKok.

More information about the Freeradius-Users mailing list