LDAP filter

  • Thread starter Thread starter Brian Shelden
  • Start date Start date
B

Brian Shelden

I'm doing an LDAP query and want to exclude any objects
that are in a "Utility" container. An example
distinguishedName is "CN=Conference
Room,OU=Utility,OU=Tech,DC=mondavi,DC=com".

I've tried "(!distinguishedName=*Utility*)" but it still
returns the example above.

Any suggestions would be appreciated.

-- Brian
 
You can't exclude based on a portion of the DN. The DN must be fully specified which obviously won't work in a filter
like you are trying to do. You need some other attribute to filter out or change your search to have a more specific
search base.
 
Back
Top