Re: Net::LDAP Search Filter
Graham Barr <[email protected]> Thu, 25 Apr 2013 08:31:07 -0500
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <[email protected]> |
On Apr 25, 2013, at 08:26 , "Zachary, Carlton - Hoboken" <[email protected]> wrote: > Hello all, > > I am trying to run this search against my directory service with the following filter and it returns nothing. > > (&(employeetype=x)(employeetype=y)(objectclass=*)) that is checking (employeetype=x) and (employeetype=y) and (objectclass=*) of course (employeetype=x) and (employeetype=y) is always going to return an empty list unless x=y maybe you wanted (&(|(employeetype=x)(employeetype=y))(objectclass=*)) to get employees of type x or type y Graham.