Question

Locked

LDAP Query Assistance - using an OR

By stain420 ·
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 conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums