Reputation: 2103
I know that ldap directory can store userpassword as clear-text or hashed(with one of the available algorithms).
The client sends the userpassword in cleartext format. Auth server checks if stored password is in hashed form or clear-text...depending upon the case it compares the password from client to stored value.
To make the connection secure we can use TLS, But do we need to send the password from client to server in cleartext form only..
Do we have option in which client sends the password in hashed format?
Upvotes: 0
Views: 536
Reputation: 11132
Unless the LDAP client is using a password-less SASL method for the BIND operation, the password should be sent in clear text over a secure connection. Only in this way can the directory server enforce password quality rules, password history, and so forth. Software professionals should reject the idea of sending passwords pre-encoded for this reason.
The directory server should be configured to use a salted SHA-2 with the longest digest available (professional-quality directory servers support salted SHA-2 with 512 bit digest). Otherwise, if there is a requirement to use a low-security SASL method like DIGEST-MD5, the server requires access to the password; therefore the password should be stored in the strongest reversible encryption available, which I believe is AES.
To summarize, if simple BIND operations are used to authenticate:
Upvotes: 3