LDAP
distinguished name
LDAP DNs and RDNs
DN - distinguished name - full path of the object in the tree. Uniquely identifies an entry and describes its position. I.e “uid=john.doe,ou=People,dc=example,dc=com”
DNs are comprised of zero or more comma-separated components called relative distinguished names, or RDNs.
For example, the DN “uid=john.doe,ou=People,dc=example,dc=com” has four RDNs:
uid=john.doe
ou=People
dc=example
dc=com
DNs are case insensitive)
RDN - is relative to its parent
Example DNs:
“uid=john.doe,ou=People,dc=example,dc=com”
“cn=John Doe+telephoneNumber=+1 123-456-7890” - to distinguish between more people named “John Doe”
”“ - empty is also valid - NULL DN references special entry called root DSE (server data)
““dc=example,dc=com”
“dc=com” - the DN of top entry is a “naming context” or “suffix”
The same DN:
DN Components
dc - domain component dc=company,dc=org (domain is company.org)
ou - organization unit (ou=
cn - common name (i.e. “John Smith”)
displayName - one line summary (for people can be the same as cn)
objectClassess
Are predefined containers for attributes. For example OpenLDAP's “Generic: User Account” assigns “inetOrgPerson” class.
inetOrgPerson
cn, sn - as required attributes
lots of optional attributes like: “photo”, “displayName”, “uid”, “postalCode”, “telephoneNumber”
common attributes
And container classes:
cn,sn (inetOrgPerson)
mail=rfc822Mailbox (inetOrgPerson)
uid=userid (inetOrgPerson)
userPassword (person, posixAccount, simpleSecurityObject)
displayName (inetOrgPerson)
Structure design
Example structure
dc=company,dc=org
ou=people
uid=jdoe
uid=jblack
cn=Joe Black
sn=Black
ou=software
ou=software
ou=customers
ou=devices
ou=it
ou=location