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.