Unlang Question freeradius 3.0.9

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Aug 27 15:18:46 CEST 2015


> On Aug 26, 2015, at 10:47 AM, Anja Ruckdaeschel <Anja.Ruckdaeschel at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20150827/3b5f4d25/attachment.sig>


More information about the Freeradius-Users mailing list