Jump to content

LDAP Import - Filter out OU using Scope 2 setting


Recommended Posts

We have a large number of OU in our AD, so I run the import from the parent level and use the Scope=2 setting to include all the sub levels.

I now need to exclude just one of the OU from the LDAP import process, but even though I have added it into the filter the LDAP import process is still processing them, so I think I have something wrong in the syntax when trying to exclude an OU.

(&(objectCategory=User)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(ou=CloudAmber)))

I have also tried the format ou:dn:=CloudAmber, but that does not work either.

I have also tested it in reverse, i.e. trying only to import just that OU, but then get no results, so it does look like I doing something wrong in terms testing the OU value.

Cheers

Martyn

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...