[Logo] LDAPSoft LDAP And Active Directory Tools Community Forums
  [Search] Search   [Register] Register /  [Login] Login 
 
Search in multiple containers  XML
Forum Index » General Discussion
Author Message
jason



Joined: 13/03/2009 19:06:35
Messages: 2
Offline

Is there a way to search in multiple ou's (containers)
support



Joined: 27/06/2008 19:01:18
Messages: 123
Offline

Is there any attribute like 'ou' which is populated for the entries in those containers, which can tell which container it belongs too?
If there is one, then you can filter using that attribute.

jason



Joined: 13/03/2009 19:06:35
Messages: 2
Offline

Only distinguishedName would contain the OU but I don’t seem to be able to get filters to work with that attribute.

support



Joined: 27/06/2008 19:01:18
Messages: 123
Offline

LDAP Filter does'nt support multiple OU Search in a single search, you must define a base DN.
To search in multiple containers select a top level container and find a common attribute, even a few letters common will work.

If you are unable to find a common attribute you can create one - find an empty attribute and run the update command to update the entries in the container with a common values.

UPDATE OU=test,DC=LDAPSoft,dc=com SET businessCategory='test'
subtreescope


Please make sure to run the update in Development environment before running the statement in production.

DN is not an attribute so you can't search on it.
 
Forum Index » General Discussion
Go to:   
[Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
Powered by JForum 2.1.9 © JForum Team