Thank you for your response Clément!

(Sorry if this is duplicate.  Just trying to keep the message in the mailing 
list.)

I’ve looked at those two pages for a long time before sending the message to 
the list.  And because I’m so new to this, I don’t understand how to do it.
I’ll try to make my questions very specific so I don’t waste your time.

1.  Where should these lines be placed?  Do they go in lsc.xml?  Are they part 
of a task? A dataset?  Since the examples don’t show these lines in context, I 
don’t know where to put them.

2.  If I use the Hash rule as shown in the example:

SecurityUtils.hash(SecurityUtils.HASH_SHA1, "phrase to hash”)

How do I tell it to do this operation on the existing plain text value that is 
in the database source?  I understand how this line works with a single 
unchanging “phrase to hash”, but not with an existing source value from a 
database record.  I’m guessing it will be a srcBean of some configuration?

3.  In the example box for Symmetric Encryption there are two lines:

SecurityUtils.encrypt("something secret")
SecurityUtils.decrypt(srcBean.getDatasetFirstValueById("encryptedAttribute"))

Are these two different examples, or must they be used together?

4.  When pulling a source plaintext value from a database, what types of values 
would replace:
“something secret”  and  “encryptedAttribute”  ?

I’m sorry that I don’t have experience with Java or programming.  Thank you for 
helping such a beginner with LSC!
Brad

  
On Jul 10, 2014, at 10:16 AM, Clément OUDOT <[email protected]> wrote:

> 
> 
> 
> 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

Reply via email to