Active Directory LDAP Path

I am trying to add a user to Active Directory through the MPS web service. I tried for a long time to find the correct LDAP url to tell him to add a new user to the Users group. I tried things like:

LDAP://XXXX.YYY/OU=Users,DC=XXXX,DC=YYY LDAP://XXXX.YYY/CN=Users,DC=XXXX,DC=YYY LDAP://XXXX.YYY/DN=Users,DC=XXXX,DC=YYY 

It seems that the β€œfarthest” I received is a mistake saying that I gave it an invalid client.

I really don't have much experience with LDAP (almost none at all), so even a good tutorial on LDAP and Active Directory will be very useful (even now it eludes me). Thanks!

Since then, I have been looking at the actual distinguished name in the ADSI editor, which was LDAP: //XXXX.YYY/CN=Users,DC=XXXX,DC=YYY, but still no luck.

+6
active-directory ldap
source share
4 answers

You have an error in your LDAP string. Let's take a look: a user with the username User1 in the organizational block Office1, where contoso.com is the domain.

An object:

 contoso.com/Users/Office1/User1 

LDAP path:

 LDAP://CN=User1,OU=Office1,OU=Users,DC=contoso,DC=com 

Please note that there is no slash along the way

  • CN = Common Name
  • OU = organizational unit
  • DC = domain component
+5
source share

if your domain is xxxx.yyyy.zzzz and you are looking for all users; your way:
LDAP: // CN = Users, DC = xxxxx, DC = yyyy, DC = ZZZZ
means that every point in the domain is replaced by dc =

+2
source share

More specifically, the default user container (not group) in the default Active Directory installation will be CN = Users, dc = domain, dc = com

You do not know if you have problems adding a user to a group or have problems creating a user in a specific place.

+1
source share

All Articles