Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How secure is your password in LDAP?

Is your password more secure in any way if it is stored on LDAP rather than a database or an encrypted file?

like image 545
user32262 Avatar asked Jul 03 '09 07:07

user32262


People also ask

Are LDAP passwords encrypted?

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.

How secure is LDAP authentication?

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.

What is the standard password encryption method in LDAP?

SHA. hashed password using the SHA-1 hash algorithm.

Is LDAP over Internet secure?

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.


1 Answers

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.

like image 164
Stefan Gehrig Avatar answered Sep 21 '22 06:09

Stefan Gehrig