Problem with LDAP query to resolve Email-address in C# app.



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.

.



Relevant Pages

  • Re: Problem with LDAP query to resolve Email-address in C# app.
    ... using a query based on the purportedSearch is not a good thing. ... My Organization have a primary domain controller and 5 child domain. ... My Problem is that the addresses i retrieve with this query is not the ... In the Exchange System Manager i retrieveall the addresses ...
    (microsoft.public.exchange.applications)
  • Re: LDAP query in a Root Domain with a Single-Label DNS Name
    ... May I know the reason as to why my LDAP query was unable to get the 2 child ... domain records on a root domain with single-label DNS name?? ... Child Domain - 1 ...
    (microsoft.public.windows.server.active_directory)
  • LDAP query returns data in parent domain but not from child domain
    ... This format work fine for querying membership of groups in ... DC=company,DC=com' where my user account resides. ... One thing I suspected was that I needed to tell the query where to bind so I ... the full membership of all groups in a child domain? ...
    (microsoft.public.windows.server.scripting)
  • Re: Unable to configure outlook client in a new Child Domain
    ... It cant find the DC in the child domain most likely. ... >Exchange System Manager ... >I'm running exhange system manager from the exchange server. ... >Domain Admin account from the root domain to create the RUS. ...
    (microsoft.public.exchange.admin)
  • Re: Inbound mail, sub-domain
    ... it a child domain? ... You have to create a recipient update service for the ... child domain,if one exists, in Exchange system manager. ... Lee. ...
    (microsoft.public.exchange.setup)

Loading