Conditional expression ":-" deprecated?

freeradius at corwyn.net freeradius at corwyn.net
Sun Jan 24 05:19:21 CET 2010


At 12:19 PM 1/23/2010, Alan DeKok wrote:
>John Morrissey wrote:
> > WARNING: Deprecated conditional expansion ":-".  See "man unlang" 
> for details
>
>   Use %{%{#User-Name}:-0}


Thanks Alan,

I have the same (or very similar issue):

[files]         expand: OU=Enterprise,DC=int,DC=invtitle,DC=com -> 
OU=Enterprise,DC=int,DC=invtitle,DC=com
[files] WARNING: Deprecated conditional expansion ":-".  See "man 
unlang" for details
[files]         ... expanding second conditional
[files]         expand: %{User-Name} -> rsteeves

Can you by chance point out how I can change the code to not deprecated:

users:
DEFAULT Huntgroup-Name == Cisco_Huntgroup, Auth-Type:=ntlm_auth, 
Ldap-Group == "Infrastructure"
         Service-Type:=NAS-Prompt-User,
         cisco-avpair:="shell:priv-lvl=15",
         Reply-Message := "Authorized Users Only"
DEFAULT Huntgroup-Name == Cisco_Huntgroup, Auth-Type:=ntlm_auth, 
Ldap-Group == "HelpDesk"
         Service-Type:=NAS-Prompt-User,
         cisco-avpair:="shell:priv-lvl=1",
         Reply-Message := "Authorized Users Only"
DEFAULT Huntgroup-Name == VPN_Huntgroup, Ldap-Group == "VPN_Users"
         Reply-Message := "Authorized Users Only"


but I suspect it's this in the LDAP module:
         filter = 
(&(sAMAccountname=%{Stripped-User-Name:-%{User-Name}})(objectClass=person))


Thx.

Rick




More information about the Freeradius-Users mailing list