Ldap-Group unlang FR 2.0.5

Rohaizam Abu Bakar haizam at myjaring.net
Wed Jul 30 06:35:47 CEST 2008


OS: FB 7.0

FR: 2.0.5

 

 

Let we analyze below if statement using unlang with Ldap-Group:-

 

 

++? if (("%{NAS-Port-Type}" =~ /^ISDN|^Sync/) && ((ldap1-Ldap-Group ==
"UNLIMITED") || (ldap2-Ldap-Group == "UNLIMITED")))

        expand: %{NAS-Port-Type} ->

?? Evaluating ("%{NAS-Port-Type}" =~ /^ISDN|^Sync/) -> FALSE

??? Skipping (ldap1-Ldap-Group == "UNLIMITED")

??? Skipping (ldap2-Ldap-Group == "UNLIMITED")

++? if (("%{NAS-Port-Type}" =~ /^ISDN|^Sync/) && ((ldap1-Ldap-Group ==
"UNLIMITED") || (ldap2-Ldap-Group == "UNLIMITED"))) -> TRUE

++- entering if (("%{NAS-Port-Type}" =~ /^ISDN|^Sync/) && ((ldap1-Ldap-Group
== "UNLIMITED") || (ldap2-Ldap-Group == "UNLIMITED")))

 

 

suppose if ("%{NAS-Port-Type}" =~ /^ISDN|^Sync/) -> FALSE, the whole line
should FALSE. but why it show TRUE? It is AND (&&) comparison.

 

Or possible problem in my if statement??

 

--haizam

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20080730/c441933d/attachment.html>


More information about the Freeradius-Users mailing list