Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Applications / June 2006

Tip: Looking for answers? Try searching our database.

Searching for Address.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alessandro.rolla@gmail.com - 05 Jun 2006 15:22 GMT
I have a problem with a search on a exchange 2003.

I try all the test in the article of infinitec site, but i can't
understand why i cannot get all the email address of my forest.

we have a forest with a root domain  A and 5 child domain (b,c,d,e,f).

I Create an entry point on the A domain and try to search all the child
domain for a object of a filter like

(&(mailNickname=*)(showInAddressBook=
CN=Default Global Address List,CN=All Global Address Lists,CN=Address
Lists Container,CN=MYORG,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=domain,DC=com
))

I can't get any object.

If i try to retry all users email(and group and contact...) from
exchange system manager, point on Default Global Address List with the
preview button i have about 2330 entry ...composed of
user,groups,contact.

The query in the default global address list is the same specified in
Henning Krause article....but if i create a code like this:

//MYEXCHANGE server name
string entry_string="LDAP://myserver.mydomain.com";
DirectoryEntry entry = new DirectoryEntry(entry_string);
DirectorySearcher searcher = new DirectorySearcher(entry);
searcher.Filter="(&(mailnickname=*)(showinaddressbook=CN=Default Global
Address     List,CN=All Global Address Lists,CN=Address Lists
Container,CN=MYORG,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=domain,DC=com))";
searcher.SearchScope=SearchScope.Subtree;
searcher.ReferralChasing=ReferralChasingOption.All;
foreach(SearchResult result in searcher.FindAll())
{
...bla.bla...
}
searcher.Dispose();

I retrieve nothing.

I can't understand where the preview button of the exchange manager in
the default global address list create the correct query.

I can retrieve only the root domain address book, and if i change a
query also other two domain(but is very slow), but for the other three
domain i can't retrieve any address.

I would create a "resolve email address" button like an outlook client
application.

Can anyone halp me?
Henning Krause [MVP - Exchange] - 05 Jun 2006 15:31 GMT
Hello Alessandro,

Which searchroot did you use to query your directory?

Best regards,
Henning Krause

>I have a problem with a search on a exchange 2003.
>
[quoted text clipped - 51 lines]
>
> Can anyone halp me?
alessandro.rolla@gmail.com - 05 Jun 2006 15:45 GMT
I try to use as a search root

new DirectoryEntry("LDAP://myserver.domain.com/CN=Default Global
Address List,CN=All Global Address Lists,CN=Address Lists
Container,CN=MYORG,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=domain,DC=com");

and also

only new DirectoryEntry("LDAP://myserver.domain.com") without other
things.

I can't understand where i must point to retrieve the Default Global
Address List.

Thanks for your quickly reply

> Hello Alessandro,
>
[quoted text clipped - 58 lines]
> >
> > Can anyone halp me?
Henning Krause [MVP - Exchange] - 05 Jun 2006 16:16 GMT
Hello,

you are binding to a specific domain only.

To search the global catalog, you must do the following (from inside the
forest,C#):

DirectoryEntry root = new DirectoryEntry("GC:");
DirectoryEntry searchRoot;

foreach (DirectoryEntry entry in root.Children) {
   searchRoot = entry;
}

DirectorySearcher searcher = new DirectorySearcher(searchRoot);

Best regards,
Henning Krause

>I try to use as a search root
>
[quoted text clipped - 75 lines]
>> >
>> > Can anyone halp me?
alessandro.rolla@gmail.com - 05 Jun 2006 16:33 GMT
Thank you very very much for your help finally i have understand!!
Alessandro.

> Hello,
>
[quoted text clipped - 94 lines]
> >> >
> >> > Can anyone halp me?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.