Ldap reset Password process

One Star

Ldap reset Password process

Hi I have a project where i must activate a user and then reset the password with a random
8 digit code then also password should be changed after the first login.
Now my problem comes in when i want to change a value that already exist for example
the userAccountControl = 514 (because user has been deactivated)
now i want to change userAccountControl to = 512 so that the user is activated again,
the same with the pwdLastSet.
So how can i replace that values with my new values? if my insert mode is set to "update" nothing happens
and when it is "insert" or "insert or update" i get the error that says "entry already exists"
Help will be appreciated
Regards,