Base DN
A Base DN is the starting point in a directory tree from which a search or operation begins. Think of it as the folder in a filing system where a lookup starts, so the directory knows which branch to look under rather than searching the entire tree. It defines the scope of where entries such as users or groups are found.
In LDAP directory operations, the Base DN (Base Distinguished Name) is the distinguished name of the entry used as the starting point, or base object, for a search or other directory operation. It anchors the search scope, which is typically combined with a scope setting (such as baseObject, singleLevel, or wholeSubtree, depending on the LDAP profile and implementation) and a filter to determine which entries are returned. A Base DN is expressed as a sequence of relative distinguished names (RDNs), for example dc=example,dc=com or ou=People,dc=example,dc=com, reflecting the directory information tree hierarchy. Exact naming conventions, supported attributes, and permitted scopes vary by directory implementation and configuration.
Why it matters
The Base DN determines the portion of the directory information tree that a search or operation can reach, which makes it a foundational control over both correctness and scope. If an application is configured with a Base DN that is too high in the tree, searches may traverse far more of the directory than intended, increasing query cost and potentially exposing entries that were not meant to be visible to that integration. If the Base DN is set too narrow or points at the wrong branch, legitimate users or groups may simply not be found, producing authentication or lookup failures that are often misdiagnosed as credential problems rather than scoping errors.
Because the Base DN is combined with a scope setting and a filter, misunderstanding how these three interact is a common source of misconfiguration. A frequent operational issue is an integration that returns no results because the Base DN and scope exclude the branch where the target entries actually live, or conversely an overly broad Base DN paired with a permissive filter that surfaces more entries than the calling system should ever process. In directory-backed authentication flows, note that locating a user entry via a Base DN is part of identification and lookup; it is distinct from the subsequent authentication step where the directory verifies the presented credential, and these should not be conflated.
The correct Base DN depends heavily on how a given directory's tree is structured, and naming conventions vary by implementation and deployment. Because of this variability, a Base DN that works in one environment cannot be assumed to work in another, and changes to directory structure can silently break integrations that hardcode a specific base. Treating the Base DN as a deliberate scoping decision, rather than a value copied between systems, reduces both failed lookups and unintended exposure.
Who it's relevant to
Inside Base DN
Common questions
Answers to the questions practitioners most commonly ask about Base DN.
