I need to migrate legacy directory-like Mysql data to a new ldap database. Not much hassle except for the passwords. They are stored as sha1 in the Mysql database (I checked I can generate them by typing "
echo -n "cleartextpassword" | openssl dgst -sha1").
The problem is I fail to import them in our openldap server.
I'm afraid there might be 2 problems here.
First an encryption / encoding problem: is this sha1 encoding usable as such in ldap at all?
An interface problem: when I use
ldapmodify to enter/update the
userPassword field, the data provided in the ldif file is re-encrypted. Is it possible to somehow bypass this problem ?
Thanks in advance