LDAP Query Assistance - using an OR - TechRepublic
Question
June 17, 2010 at 11:53 AM
stain420

LDAP Query Assistance – using an OR

by stain420 . Updated 16 years ago

I have the following LDAP query:

(&(sAMAccountname=*)(mail=*)(proxyAddresses=smtp:*)(objectCategory=User)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

I would like to ALSO pull any mail addresses from mail-enabled public folders. I know I need to stick an OR in there, along with objectClass=publicFolder but I can’t get it to work. I’ve tried this:

(&(sAMAccountname=*)(mail=*)(proxyAddresses=smtp:*)(|(objectCategory=User)(objectClass=publicFolder))((!(userAccountControl:1.2.840.113556.1.4.803:=2)))

But that returns 0 results. Help?

This discussion is locked

All Comments