Password script
Alan DeKok
aland at deployingradius.com
Wed Nov 13 15:31:04 CET 2013
Miroslav Lednicky wrote:
> I have Freeradius 2.1.10. I need use script for getting
> cleartext passwords from external system.
>
> I try this in authorize section:
>
> update control {
> Cleartext-Password = `%{exec:/usr/local/bin/my-script %{User-Name}}`
That is wrong. Read "man unlang".
The back-quotes `foo` say "run the string foo as if it had been typed
on the command line".
There is no command called "%{exec...", so it fails.
The solution is to simplify the string:
Cleartext-Password = `/usr/local/bin/my-script %{User-Name}`
Alan DeKok.
More information about the Freeradius-Users
mailing list