2/1/15

ActiveDirectory Membership Provider a referral was returned from the server

The “A referral was returned from the server” error usually means that there is a conflict between the IP address and the domain controller (DC) defined on the connection string.

To illustrate the problem, we define two IP addresses hosted on different domains:

IP Address
DC Name
Notes
172.1.1.10
ozkary.com
Production domain

172.1.30.50
ozkaryDev.com
Development domain


If we defined a LDAP connection string with this format:

LDAP://172.1.1.10:389/OU=USERS,DC=OZKARYDEV,DC=COM

This will generate the error because the IP is actually on the OZKARY DC not the OZKARYDEV DC. To correct the problem, we would need to use either one of these valid connections:

Connection String
Comments
LDAP://172.1.1.10:389/OU=USERS,DC=OZKARY,DC=COM
Production setting

LDAP://172.1.30.50:389/OU=USERS,DC=OZKARYDEV,DC=COM
Development Setting



That should address the problem.

1 comment :

  1. I think I have a similar problem. In my case when I first tried to create directoryentry using path involving certain IP it gave me protocol error so I tried finding hostname using nslookup and it gave me following error:
    c:\>nslookup
    Server: somedomain.somebdomain.com
    Address:

    *** somedomain.somebdomain.com can't find : Non-existent domain

    and note that the IP in the first case works fine when I create connection to the AD using Apache directory browser. Can you please help me with this?

    ReplyDelete