How to use a filter to avoid a sub OU in Active Directory?

后端 未结 5 1531
清歌不尽
清歌不尽 2020-12-15 19:07

I have an application that pulls user information from an OU in Active Directory. The parameters it takes are a base for the search and a filter string.

I have an O

5条回答
  •  庸人自扰
    2020-12-15 19:41

    The following will do the trick:

    (&(objectClass=user)(!(distinguishedName:=%Evil%)))
    

    I ran into a similar problem while building an address book for scan to e-mail. I tried (&(objectClass=user)(!(distinguishedName:=*Evil*))) but it seems that some MFP's don't accept * as a wildcard, but they do accept %

提交回复
热议问题