assign a value to an attribute via a script

Alan DeKok aland at
Wed Apr 26 21:31:24 CEST 2006

"Philippe Bacquaert" <philippe.bacquaert at> wrote:
> I'm searching how to use a script to modify the value of an
> attribute.

  See scripts/exec-program-wait for an example.

> In my test I try to use a script to assign an IP address to
> the Attribute Framed-IP-Address :
> Framed-IP-Address = `%{dhcp:/etc/raddb/test %{User-Name}
> %{NAS-IP-Address}}`

  Is that an entry in the "users" file?

> I get an error message when I try to start :
> ERROR: Cannot find a configuration entry for module
> "Framed-IP-Address".

  Ah.  You put the attribute in radiusd.conf.  Why?  The documentation
didn't say to do that, and all of the other examples of setting
attributes put them in other files, like the "users" file.

  Alan DeKok.

More information about the Freeradius-Users mailing list