Thanks very much ; Here's what I tried .
<dataset> <name>ClearSHA1Password</name> <policy>FORCE</policy> <defaultValues> </defaultValues> <forceValues> <! ---- 01.03.2020 - This Works but wrong Encryption --> <!-- <string>SecurityUtils.hash(SecurityUtils.HASH_MD5,"TestUser1")</string> --> <!-- <string>SecurityUtils.hash(SecurityUtils.HASH_SHA1,srcBean.getDatasetFirstValueById("uid"))</string> --> <!-- 09.03.2020 -- According to my last post in the LSC, here's a proposal for another encryption's type --> <!-- I replaced the variable by a given password - testing purpose --> <string> <![CDATA[ var octetString =srcBean.getDatasetFirstValueById("TestUser1"); var str = java.lang.String(octetString); "{SHA}" + SecurityUtils.hash(SecurityUtils.HASH_SHA1, str) ]]> </string> </forceValues> <createValues> </createValues> </dataset> Le 09/03/2020 à 15:37, Forster Arnaud, Gymnase francais a écrit : Hello Clément, Sorry for my poor knowledge of java, but when I try to introduce the code you sent (of course, I had to change the "userPassword") in the calculation of my password, I get the following error : Reason: javax.script.ScriptException: TypeError: java.lang.String is not a function in <eval> at line number 9 Please share you javascript code. -- Clément Oudot | Identity Solutions Manager clement.ou...@worteks.com<mailto:clement.ou...@worteks.com> Worteks | https://www.worteks.com
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list lsc-users@lists.lsc-project.org https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users