LDAP Null Bind and Anonymous Access
Anonymous LDAP access — also called null bind — allows unauthenticated clients to query the directory. On Active Directory this is disabled by default in modern builds but still present in legacy environments and misconfigured DCs. On OpenLDAP and other directory servers it is often intentionally configured but scoped too broadly. This page confirms the vulnerability exists and documents its impact — exploitation is covered in LDAP Anonymous Bind Exploitation.
Confirming null bind
A null bind succeeds when the server accepts a bind request with an empty DN and empty password. The key difference from a failed bind is that the server returns data rather than an error.
# VULNERABLE — null bind succeeds: namingContexts: DC=corp,DC=local result: 0 Success # NOT VULNERABLE — null bind rejected: result: 1 Operations error text: 000004DC: LdapErr: DSID-0C09075A, comment: In order to perform this operation a successful bind must be completed
Determining scope of anonymous access
Confirming null bind succeeds is only the first step. The scope of what is readable varies significantly between servers. Document exactly what is exposed.
OpenLDAP specific checks
OpenLDAP servers often have anonymous access configured intentionally but scoped incorrectly. These additional checks apply to non-AD LDAP servers.
Impact classification
Null bind allowed, user objects readable → valid username list for AD Password Spraying and AS-REP Roastable Account Enumeration without credentials
Null bind allowed, password policy readable → determines lockout risk before any credential attack
Null bind allowed,
descriptionattributes readable → often contains plaintext credentialsNull bind allowed,
userPasswordreadable → direct credential extraction, passwords may be plaintext or weakly hashedNull bind allowed, full directory tree readable → complete domain enumeration without authentication
For exploitation of all of these paths see LDAP Anonymous Bind Exploitation.
Was this helpful?
Your feedback helps improve this page.