[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
generate hash code for openldap in java
I've used ldappasswd to generate hash codes (sha-1) for the userpassword,
that works fine, but I would prefer to generate the hash in my java code..
I've tried java.security.MessageDigest to generate the hash, but the hash
returned isn't supported by openLdap (I think). When I lookup the
userpassword in ldap it seems to miss the {sha} tag in the beginning of the
userpassword that identifies the hash code, and I can't authenticate with
the plain text version of the userpassword.
Does anyone know a method that generates a hash in java that OpenLdap
support?
thanks
Erik