Unlang Question freeradius 3.0.9
Hi there, we used code like this in unlang policies with freeradius 2.x if (Ldap-Group == "%{control:My-Group-Name}" ) { do something } With freeradius 3.0.9 it is expanded correctly but the comparison returns false and the ldap group check is not involved. EXPAND %{control:My-Group-Name} --> cn=mygroup,ou=myou,o=myo,c=de if (Ldap-Group == "%{control:My-Group-Name}" ) -> FALSE if (Ldap-Group == "cn=mygroup,ou=myou,o=myo,c=de" ) starts the check and evaluates to true. Is there a new/another syntax for the expansion in a comparison? Thanks, Anja
On Aug 26, 2015, at 10:47 AM, Anja Ruckdaeschel <Anja.Ruckdaeschel@rz.uni-regensburg.de> wrote:
Hi there,
we used code like this in unlang policies with freeradius 2.x
if (Ldap-Group == "%{control:My-Group-Name}" ) { do something }
With freeradius 3.0.9 it is expanded correctly but the comparison returns false and the ldap group check is not involved.
EXPAND %{control:My-Group-Name} --> cn=mygroup,ou=myou,o=myo,c=de
if (Ldap-Group == "%{control:My-Group-Name}" ) -> FALSE
if (Ldap-Group == "cn=mygroup,ou=myou,o=myo,c=de" ) starts the check and evaluates to true.
Is there a new/another syntax for the expansion in a comparison?
No. Just a missed test case I guess... I'll look into it. -Arran
Hi Arran, thank you very much. Ciao Anja
participants (2)
-
Anja Ruckdaeschel -
Arran Cudbard-Bell