Fallback LDAP Attribute Value

Ivan Kalik tnt at kalik.net
Tue Jul 7 18:01:32 CEST 2009


>> Thanks Ivan, the following in the post-auth section of the default file
>> works:
>>
>>> 	if ((!reply:Tunnel-Private-Group-ID) || (reply:Tunnel-Private-Group-ID
>>> == "")) {
>>> 		update reply {
>>> 			Tunnel-Private-Group-ID = "666"
>>> 		}
>>> 	}
>
> OK for my next part on this subject, this returns the values for all
> users regardless of what they are connecting to. Is it possible to
> either restrict this value to only be returned to a particular huntgroup
> or to remove this value from being returned from the huntgroups that
> don't need it.

Yes.

if(((!reply:...) || (reply:... = "")) && Huntgroup-Name = "whatever")

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list