Is your password more secure in any way if it is stored on LDAP rather than a database or an encrypted file?
LDAP passwords are normally stored in the userPassword attribute. RFC4519 specifies that passwords are not stored in encrypted (or hashed) form. This allows a wide range of password-based authentication mechanisms, such as DIGEST-MD5 to be used. This is also the most interoperable storage scheme.
Is LDAP authentication secure? LDAP authentication is not secure on its own. A passive eavesdropper could learn your LDAP password by listening in on traffic in flight, so using SSL/TLS encryption is highly recommended.
SHA. hashed password using the SHA-1 hash algorithm.
By default, the LDAP traffic isn't encrypted, which is a security concern for many environments. With Azure AD DS, you can configure the managed domain to use secure Lightweight Directory Access Protocol (LDAPS). When you use secure LDAP, the traffic is encrypted.
Passwords are stored as hashed strings in LDAP directories. OpenLDAP for example supports the schemes salted SHA1 {SSHA}
, crypt {CRYPT}
(OS dependent), MD5 {MD5}
, salted MD5 {SMD5}
and SHA1 {SHA}
. I think Active Directory servers store some sort of LM hash and/or NT hash.
Given that fact, storing a password in an LDAP directory is not more or less secure than storing the hashed password (same hashing assumed) in a file or an SQL database. Everyone who has direct access to the underlying data structure can at least read the hashed password value (if the data is not additionally encrypted on a file- oder filesystem-basis).
The decision whether to use LDAP or some other kind of account storage mechanism will surely not be based on the fact of how secure the passwords are stored. The decision will rather be based on how the authentication will be done and what other requirements you have to fulfil. LDAP comes in handy when you have to connect different clients to a central authentication system (e.g. proprietary software, email servers) or if you have to integrate it into some KERBEROS or SASL authentication scenario.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With