| Michael Lechtenboerger 2002-10-05, 8:42 pm |
| Dear all,
in an exchange addresslist I'd like to search for all the objects (e.g.
person)
which are in a specific OU in Active Directory.
When using a userdefined LDAP query like
(& (objectCategory=Person)(distin
guishedName=*"OU=test,DC=domain,DC=de"))
the result is nothing (this is ok because the distinguishedName is somehow
the 'primary key' and does not allow wildcards by definition).
Trying
(|(objectCategory=Person)(dist
inguishedName=*"OU=test,DC=domain,DC=de"))
the result is all persons but no filtering on the OU (also ok because of
mistake mentioned above and the logic 'or' operator)
I searched everything in SDK and Technet. There is mentioned to set the base
for the search first like:
<LDAP://OU=Home,DC=domain,DC=de> ;(objectCategory=Person);cn;Su
bTree
Trying the examples with VB works fine.
But how to do it in an addresslist??
Someone should have done this already I think.
Please help
Michael
|