Search code examples
active-directoryadsi

Using ADSI To Open A Newly Created AD LDS Instance


I created a new instance using Active Directory Lightweight Directory Services Setup Wizard with the distinguished name of CN=MyName,DC=MyComponent successfully. I see the instance as a running windows service. Within ADSI, anytime I try to connect to that Distinguish Name I get:

Operation failed. Error code 0x202b A referral was returned from the server. data 0, 1 access point

My path is: LDAP://CN=MyName,DC=MyComponent


Solution

  • Forgot to add the port:

    LDAP://localhost:389/CN=MyName,DC=MyComponent

    Works from there.