2014-07-09 22:02 GMT+02:00 Brad Firestone <[email protected]>: > Thanks to this mailing list, I now have a successful sync running from > mySQL to OpenLDAP. > > Now I need to complete the details. I’ve done lots of searching and I see > many examples how to hash a default password into LDAP. > But what I’m trying to figure out is how to take a cleartext value from > the database and put the hashed version into LDAP. > I’m assuming this goes in a <dataset> in my task. I thought it might be > like the dataset that forces everything to lowercase, > but I haven’t figured out how to put the string together. > > I would appreciate any help that someone could provide. I’m starting with > MD5 hash, but might want to go to AES encryption sometime. > Will the process be the same for encryption as for hash? I know I’ll need > to setup the security section, and create the key. > > Hi Brad,
you should use MD5 or SHA to encrypt. See the hash method in SecurityUtils : http://lsc-project.org/wiki/documentation/latest/configuration/syncoptions/security http://lsc-project.org/javadoc/2.0-SNAPSHOT/org/lsc/utils/SecurityUtils.html#hash%28java.lang.String,%20java.lang.String%29 Clément.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

