Marti Markov
2017-05-13 04:03:11 UTC
Hey all,
Iâm in the process of syncing users from OpenLDAP to AD. Iâm having trouble creating the user without forcing them to change the password (as I want them to only be able to change it in OpenLDAP and sync the new password to AD).
Iâm trying to set the pwdLastSet to the current timestamp:
<name>pwdLastSet</name>
<policy>KEEP</policy>
<createValues>
<string>AD.unixTimestampToADTime(Math.round((new Date()).getTime() / 1000))</string>
</createValues>
</dataset>
Unfortunately Iâm getting this error:
May 13 05:58:00 - ERROR - Error while adding entry cn=First Last,OU=Agents2,OU=Personel,DC=domain,DC=com in directory :javax.naming.NamingException: [LDAP: error code 80 - 00000057: SysErr: DSID-031A1291, problem 22 (Invalid argument), data 0
I have also tried with getting the current timestamp and hardcoding it in and it results in the same problem
Just a note I havenât set up the unicodePwd part yet if that makes a difference.
Iâm in the process of syncing users from OpenLDAP to AD. Iâm having trouble creating the user without forcing them to change the password (as I want them to only be able to change it in OpenLDAP and sync the new password to AD).
Iâm trying to set the pwdLastSet to the current timestamp:
<name>pwdLastSet</name>
<policy>KEEP</policy>
<createValues>
<string>AD.unixTimestampToADTime(Math.round((new Date()).getTime() / 1000))</string>
</createValues>
</dataset>
Unfortunately Iâm getting this error:
May 13 05:58:00 - ERROR - Error while adding entry cn=First Last,OU=Agents2,OU=Personel,DC=domain,DC=com in directory :javax.naming.NamingException: [LDAP: error code 80 - 00000057: SysErr: DSID-031A1291, problem 22 (Invalid argument), data 0
I have also tried with getting the current timestamp and hardcoding it in and it results in the same problem
Just a note I havenât set up the unicodePwd part yet if that makes a difference.