The information in this article applies to product: e-Work 6 and 6.1 Designer User Manual
Issue
The version 6 and 6.1 Designer User Manual give the following incorrect syntax for the LDAP Search:
"&((objectClass=User)(OU=development))" returns all results where the object class is User and the OU is development.
"|((objectClass=User)(OU=development))" returns all results where the object class is User OR the OU is development.
%Result:=%LDAPSearch(Directory1,"\[objectClass=inetOrgPerson\]","cn",)
Resolution
The correct syntax is:
"(&(objectClass=User)(OU=development))" returns all results where the object class is User and the OU is development. (Note that the '&' is between the parentheses.)
"(|(objectClass=User)(OU=development))" returns all results where the object class is User OR the OU is development. (Note that the '|' is between the parentheses.)
%Result:=%LDAPSearch(Directory1,"(objectClass=inetOrgPerson)","cn",) (Note parentheses instead of brackets.)