need help setting/using attribute, did something wrong...
Phil Mayers
p.mayers at imperial.ac.uk
Fri Jul 28 17:33:20 CEST 2006
Duane Cox wrote:
> <users file (lines 18-21) >
> DEFAULT NAS-IP-Address == "192.168.0.251", NAS-Identifier := "LAB_CCU"
> Fall-Through = Yes
>
> DEFAULT User-Name =~ "^6[0-9a-f]:[0-9a-f]\{2}:[0-9a-f]\{2}$", Post-Auth-Type
> := "waverider"
Attribute := Value
Always matches as a check item, and replaces in the
configuration items any attribute of the same name. If no attribute of
that name appears in the request, then this attribute is added.
Thus, the NAS-Identifier variable you're setting is in the check items.
Maybe try:
update wireless_data set tower = '%{check:NAS-Identifier}'
...and so forth. See doc/variables.txt
Note that setting NAS-Identifier in the check items does not make too
much sense (unless you are using e.g. rlm_checkval). The NAS is expected
to send it. A huntgroup would make more sense, or you could add
NAS-Identifier to the request with e.g. rlm_passwd mapping
NAS-IP-Address to NAS-Identifier.
More information about the Freeradius-Users
mailing list