Question Locked

LDAP Query Assistance - using an OR

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

2 replies

This discussion is closed to new replies.