Le 31/01/2018 à 16:46, Vincent LEPETIT a écrit :
Hi,
Itest and try to set AccountExpires values.
this :
<dataset>
<name>accountExpires</name>
<policy>KEEP</policy>
<createValues>
<string>AD.getAccountExpires(02-03-2018)</string> or "02-03-2018 » or
"02/03/2018 » or js:AD.getAccountExpires(Date("2018-02-03").getTime())
</createValues>
</dataset>
give me the error like :
janv. 31 16:21:35 - ERROR - Fail to compute expression:
AD.getAccountExpires("02/03/2018") on
id=uid=utest002,ou=people,dc=univ-psl,dc=fr
Reason: javax.script.ScriptException:
sun.org.mozilla.javascript.WrappedException: Wrapped
java.text.ParseException: Unparseable date: "02/03/2018" (<Unknown
source>#5) in <Unknown source> at line number 5
What value format do i give to this method to work ?
See
https://lsc-project.org/javadoc/2.1-SNAPSHOT/org/lsc/utils/directory/AD.html#getAccountExpires-java.lang.String-
You must provide the date format as second parameter.
Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users