A DN is comprised of a series of RDNs (Relative distinguished Names) found by walking up the tree (DIT) to its root (or Su Ffix or base) and is written left to right unlike the file system analogy you see quoted everywhere which are written right to left. If you're into analogies it's like the more like a fully qualified domain name (FQDN).
CN, OU, DC are the distinguished names in the end strings of the LDAP connection server (DN, distinguished name)
The connection string format for the LDAP connection server is: LDAP://SERVERNAME/DN
Where the DN has three attributes, namely CN,OU,DC
LDAP is a communication protocol, as HTTP is a protocol!
In the LDAP directory,
- DC (Domain Component)
- CN (Common Name)
- OU (Organizational Unit)
The LDAP directory is similar to the file system directory.
The following directories:
Dc=redmond,dc=wa,dc=microsoft,dc=com
If we are analogous to a file system, it can be seen as the following file path:
Com/microsoft/wa/redmond
Example: cn=test,ou=developer,dc=domainname,dc=com
In the preceding code, Cn=test may represent a user name, and Ou=developer represents an organizational unit in Active Directory. The meaning of this sentence may be that the test object is in the Developer organizational unit of the domainname.com domain.
LDAP summary--Python LDAP