Relative Distinguished Name
A Relative Distinguished Name (RDN) is a single component of the full name that identifies an entry in an LDAP directory. It is written as an attribute paired with a value, such as cn=John Doe. Multiple RDNs are joined together to form the complete distinguished name that locates an entry within the directory tree.
An RDN is a component of an LDAP distinguished name (DN), where a DN is a sequence of comma-separated RDNs. Each RDN is comprised of one or more attribute name-value pairs (for example, cn=John Doe or ou=People); depending on the directory, an RDN may be multi-valued, combining more than one name-value pair. An RDN uniquely names an entry relative to its parent entry, and the DN of the parent (the entry above a given RDN) is referred to as the parent distinguished name. For example, in the DN cn=John Doe,ou=People,dc=sun.com, cn=John Doe is an RDN relative to ou=People,dc=sun.com. Specific attribute types permitted in an RDN and support for multi-valued RDNs vary by directory implementation and schema.
Why it matters
The RDN is the atomic building block of an LDAP directory's naming structure, and understanding it is essential to reasoning about how entries are located, referenced, and organized within the directory information tree (DIT). Because a distinguished name is simply a sequence of comma-separated RDNs, an incorrect or ambiguous RDN can break the resolution of an entire DN, causing lookups, binds, and downstream authentication or provisioning operations that depend on the directory to fail. The RDN uniquely names an entry only relative to its parent, so the same RDN value (for example, cn=John Doe) may legitimately appear under different parent entries, and confusing relative identity with absolute identity is a common source of directory misconfiguration.
RDN choices also have operational consequences over an entry's lifecycle. Because the RDN typically forms part of the entry's DN, using a mutable attribute (such as a person's common name) as the RDN can complicate rename operations and any external references that hold the DN, since changing the RDN changes the DN. In many deployments this is why administrators prefer stable, non-reassigned identifier attributes for the RDN, though the specific attribute types permitted and whether multi-valued RDNs are supported vary by directory implementation and schema. Being precise about which attribute serves as the RDN is therefore a practical concern for anyone designing a directory hierarchy or integrating systems that consume DNs.
Who it's relevant to
Inside RDN
Common questions
Answers to the questions practitioners most commonly ask about RDN.
