Distinguished Name
A Distinguished Name (DN) is a unique name that identifies a specific entry in a directory system, much like a full address that pinpoints exactly one entity among many. It is built from a series of naming components that, taken together, distinguish that entry from all others. DNs are commonly used in directory systems and also appear in digital certificates to identify their subject.
A Distinguished Name (DN) is an identifier that uniquely represents an object within a directory information tree, originating in the X.500 directory model and widely used in LDAP directories. A DN is composed of an ordered sequence of Relative Distinguished Names (RDNs), each RDN being one or more attribute-value pairs (for example, cn=Jane Doe), with RDNs typically connected by commas to express the entry's position in the directory hierarchy. Beyond directory entries, DNs also appear in certificate systems, where the DN is a set of values supplied during enrollment and creation of a Certificate Signing Request (CSR) to identify the certificate subject. Exact syntax, attribute types, and ordering conventions depend on the standard profile and implementation.
Why it matters
The Distinguished Name is the anchor by which directory-based identity systems locate and reference a specific entry. Because a DN uniquely represents one object within the directory information tree, it functions as the canonical reference used in bind operations, search base definitions, group membership references, and access control entries. In most LDAP and X.500-derived deployments, an incorrect or ambiguous DN means the wrong entry is resolved, or none at all, so precision in DN construction directly affects whether identification and subsequent authentication succeed.
DNs also cross the boundary between directory services and certificate systems. When a Certificate Signing Request (CSR) is created, the DN is the set of values that identifies the certificate subject. This makes the DN a shared identity construct: the same conceptual naming approach that locates a directory entry also names the subject a certificate asserts. Misalignment between the DN expected by a relying system and the DN presented, whether in a directory bind or in a certificate subject field, can cause identification and validation to fail in ways that are easy to overlook.
Because exact syntax, attribute types, and ordering conventions depend on the standard profile and implementation, teams that treat DNs as free-form strings often encounter interoperability problems. Two DNs that appear equivalent to a human reader may not match under a given implementation's comparison rules, and RDN ordering is significant to the hierarchical meaning of the name. Understanding the DN as a structured, ordered identifier rather than an arbitrary label is essential for reliable directory operations and certificate handling.
Who it's relevant to
Inside DN
Common questions
Answers to the questions practitioners most commonly ask about DN.
