The X.500 Directory (LDAP f.i.) uses distinguished names (DNs) as primary keys to entries in the directory. A DN is a sequence of relative distinguished names (RDN) connected by commas.
The X.500 Directory uses distinguished names (DNs) as primary keys to entries in the directory. The RFC 1779 defines the string representation of DNs, which are also used in the Lightweight Directory Access Protocol (LDAP) to transfer distinguished names.
The LDAP API references an LDAP object by its distinguished name (DN). A DN is a sequence of relative distinguished names (RDN) connected by commas. An RDN is an attribute with an associated value in the form attribute=value
.
The following are examples of two distinguished names.
CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM
CN=Karen Berge,CN=admin,DC=corp,DC=Fabrikam,DC=COM
Sources: RFC 4514: LDAP String Representation of Distinguished Names and MSDN.