Have you tried specifying the OUs you want to include?

 

________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Jeffery
Tsui
Sent: Wednesday, 28 January 2009 2:19 PM
To: [email protected]
Subject: How to exclude OU from LDAP query

 

Hi all,

 

Wondering if anyone has had experience in importing AD profile with LDAP
query to exclude (or include) specific OUs? 

 

OU structure as follow:

*       OU_lv1

*         OU_lv2_1

*         OU_lv3_1

*         OU_lv3_2

*         OU_lv3_3

*         OU_lv2_2

*         OU_lv2_3

Requirement: include all profiles but exclude OU_lv3_1.

 

I've tried following with no luck:

(&(objectCategory=Person)(objectClass=User)(!(memberof:1.2.840.1135561.
4.1941:=(CN=Authenticated
Users,OU=OU_lv3_1,OU=OU_lv2_1,OU=OU_lv1,DC=domain,DC=local))))

(&(objectCategory=Person)(objectClass=User)(memberof:1.2.840.113556.14.
1941:=(CN=Authenticated Users, OU=OU_lv1,DC=domain,DC=local)))

 

Thanks

Jeffery

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
<http://www.codify.com/lists/ozmoss> 
Other lists you might want to join: http://www.codify.com/lists
<http://www.codify.com/lists> 
--------------------------------------------------------------------------------
Support procedure: http://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to