Point Deep

Mundeep's Tech Blog

A referral was returned from the server

Posted by mundeep on July 17, 2008

Running some code that updates active directory i ran into the following error message when trying to search for a user “A referral was returned from the server“. The problem was that the LDAP query i had used the wrong DC, and not the one that the user was in.

eg. my LDAP connection was: LDAP://devdcserver01.domain.int/DC=development,DC=domain,DC=int

when it should have been: LDAP://devdcserver01.domain.int/DC=dev,DC=domain,DC=int

This was because while the ‘friendly’ name of the domain you use when logging in was “DEVELOPMENT” however the fully qualified name was dev.domain.int


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: