LDAP filter

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
 
J

Joe Richards [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top