Although many users use dsadd and other commands to add users, the dsadd command does not contain the meaning of DC, CN, and ou, which many users do not understand, here is a reply from Microsoft's technical support staff, hoping to help you.
CN, ou, and DC are the different names (DN, Distinguished Name) in the end strings of the LDAP connection server );
The connection string format of the LDAP connection server is LDAP: // servername/DN.
The DN has three attributes: CN, ou, and DC.
LDAP is a communication protocol, just like HTTP!
In the LDAP directory.
DC (domain component)
CN (Common name)
Ou (organizational unit)
An LDAP directory is similar to the file system directory. The following directory:
Dc = Redmond, Dc = wa, Dc = Microsoft, Dc = com
If we compare the file system, we can see it as the following file path:
COM \ Microsoft \ wa \ Redmond
Example: Cn = test, ou = developer, Dc = domainname, Dc = com
In the Code above, Cn = test may represent a user name, And ou = developer may represent an organizational unit in Active Directory. The meaning of this statement may be that the test object is in the developer organization unit in the domainname. com domain.