Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referral

Status
Not open for further replies.

Meldric

MIS
Sep 5, 2001
139
US
Hopefully someone knows the answer to this one.

I am running a LDAP query on a Exchange 2000 server as below:

Code:
set oUserObj = GetObject("LDAP://CN=RogerE,CN=Recipients,OU=SomeCompany,O=FullTitle ofSomeCompany,DC=Exchange")

Sorry for the cryptic content...my boss insists.

Anyway I get a referral back from the query.

The exact error message is:

Code:
A referral was returned from the server

Code:  8007202B
Source:  (null)

I have looked on Microsoft's site and found reference to referrals. Basically the server is saying that it doesn't have the information, but it knows who does. The problem is I do not know which server has the information and do not know how to get access to the "referral" from the error message.

Anyone have any ideas on how to go about this?

Roger
 
I just came across the same problem (sort of). I had 2 domain controllers in my DirectoryEntry path though. I resolved the problem by changing the order of the DC's in the path, making the most likely source of the information 1st in the list. My guess is that if you are only specifying one DC that the information you are seeking is on a different DC. I wish I could help more but it might be a place for you to start looking.
smiletiniest.gif
 
Try looking in the LDAP RFCs for referals and check to see if MS has implemented them correctly (doubtfull) or if your applicaiton is choking on it (possible)

-devNull
 
you should specify a server name or domain name in your LDAP query:


LDAP://servername/CN=RogerE,CN=Recipients,OU=SomeCompany,O=FullTitle ofSomeCompany,DC=Exchange

Your first query is trying to refer you to a server where the item is really stored.

Also, since you're Exchange2K, it's more appropriate to query a Global Catalog:

GC://servername/CN=RogerE,CN=Recipients,OU=SomeCompany,O=FullTitle ofSomeCompany,DC=Exchange
 
I re-orderes the DC's in the command line and it worked after the 2nd change. :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top