Problem with LDAP query to resolve Email-address in C# app.
- From: alessandro.rolla@xxxxxxxxx
- Date: 30 May 2006 00:19:59 -0700
Hello,
i try to create a function with a behavior like the Outlook or OWA
Ctrl-K.
My Organization have a primary domain controller and 5 child domain.
We have and Exchange Server on the primary domain e 5 child exchange
server in the 5 child domain.
I log in my primary domain controller with domain admin privilege.
I create a c# code like this:
DirectoryEntry entry = new
DirectoryEntry("LDAP://MyEchange.MyDomain.Com");
DirectorySearcher searcher = new DirectorySearcher(entry);
searcher.SearchScope=SearchScope.Subtree.
searcher.filter="(& (mailnickname=*) (|
(&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder)(objectCategory=msExchDynamicDistributionList)
))";
I retrieve the query for the filter from the purportedSearch in the
Default Global Address List with ADSI edit.
My Problem is that the addresses i retrieve with this query is not the
same of the Exchange System Manager preview on the Default Global
Address List.
In the Exchange System Manager i retrieve(obviously) all the addresses
of my organization with all child domain addresses.
With my query i have only the addresses and contact(and public folder)
about the addresses in the primary domain controller but i can't
retrieve the child domain addresses.
If i copy my query on a custom query in Active Directory Users and
Computer in the same server (MyExchange.MyDomain.Com) I retrieve the
addresses of my query and not the same of the Exchange System Manager.
I think is an Entry Point Problem?
Can anyone help me please?
Thank,Alessandro.
.
- Follow-Ups:
- Re: Problem with LDAP query to resolve Email-address in C# app.
- From: Henning Krause [MVP - Exchange]
- Re: Problem with LDAP query to resolve Email-address in C# app.
- Prev by Date: Re: How can I retrieve the reply codes of undelivered emails using VB6/Exchange2000?
- Next by Date: Re: Problem with LDAP query to resolve Email-address in C# app.
- Previous by thread: How can I retrieve the reply codes of undelivered emails using VB6/Exchange2000?
- Next by thread: Re: Problem with LDAP query to resolve Email-address in C# app.
- Index(es):
Relevant Pages
|
Loading