|
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 |