|
|
|
date: 5 Jun 2006 07:22:20 -0700,
group: microsoft.public.exchange.applications
back
Searching for Address.
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?
date: 5 Jun 2006 07:22:20 -0700
author: unknown
Re: Searching for Address.
Hello Alessandro,
Which searchroot did you use to query your directory?
Best regards,
Henning Krause
wrote in message
news:1149517340.375574.246670@g10g2000cwb.googlegroups.com...
>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?
>
date: Mon, 5 Jun 2006 16:31:44 +0200
author: Henning Krause [MVP - Exchange]
Re: Searching for Address.
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
Henning Krause [MVP - Exchange] wrote:
> Hello Alessandro,
>
> Which searchroot did you use to query your directory?
>
> Best regards,
> Henning Krause
>
>
> wrote in message
> news:1149517340.375574.246670@g10g2000cwb.googlegroups.com...
> >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?
> >
date: 5 Jun 2006 07:45:36 -0700
author: unknown
Re: Searching for Address.
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
wrote in message
news:1149518736.159634.157970@i39g2000cwa.googlegroups.com...
>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
>
> Henning Krause [MVP - Exchange] wrote:
>> Hello Alessandro,
>>
>> Which searchroot did you use to query your directory?
>>
>> Best regards,
>> Henning Krause
>>
>>
>> wrote in message
>> news:1149517340.375574.246670@g10g2000cwb.googlegroups.com...
>> >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?
>> >
>
date: Mon, 5 Jun 2006 17:16:09 +0200
author: Henning Krause [MVP - Exchange]
Re: Searching for Address.
Thank you very very much for your help finally i have understand!!
Alessandro.
Henning Krause [MVP - Exchange] wrote:
> 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
>
> wrote in message
> news:1149518736.159634.157970@i39g2000cwa.googlegroups.com...
> >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
> >
> > Henning Krause [MVP - Exchange] wrote:
> >> Hello Alessandro,
> >>
> >> Which searchroot did you use to query your directory?
> >>
> >> Best regards,
> >> Henning Krause
> >>
> >>
> >> wrote in message
> >> news:1149517340.375574.246670@g10g2000cwb.googlegroups.com...
> >> >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?
> >> >
> >
date: 5 Jun 2006 08:33:14 -0700
author: unknown
|
|