Thanks Graham.

-----Original Message-----
From: Graham Barr [mailto:gb...@pobox.com] 
Sent: Thursday, April 25, 2013 9:31 AM
To: Zachary, Carlton - Hoboken
Cc: perl-ldap@perl.org
Subject: Re: Net::LDAP Search Filter


On Apr 25, 2013, at 08:26 , "Zachary, Carlton - Hoboken" <czach...@wiley.com> 
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.



Reply via email to