Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verify LDAP user password with SSHA-512 hash method

Tags:

ldap

openldap

I am using OpenLDAP to store user information. User entry is an inetOrgPerson object. I use Apache Directory Studio to add userPassword with SSHA-512 hash method.

How can I verify input user password with the password stored in LDAP in my Java application?

like image 577
user7413 Avatar asked Jan 18 '26 16:01

user7413


1 Answers

  • Consider not providing a pre-encoded password to the directory server - this prevents the server from checking password quality and managing password history. Transmit the password in clear-text using a secure connection. Configure the server to only accept secure connections or to reject operations other than StartTLS on a non-secure connection.
  • The LDAP BIND operation is used to change the authorization state of a connection. The LDAP client transmits a BIND request to the server, the server then matches the provided credentials with the credentials store in the user entry and if successful, changes the authorization state of the connection.

Read an example using the UnboundID LDAP SDK.

like image 66
Terry Gardner Avatar answered Jan 21 '26 04:01

Terry Gardner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!