Question

  • Creator
    Topic
  • #2213868

    LDAP Query Assistance – using an OR

    Locked

    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?

All Answers

Viewing 1 reply thread