I am using php to change the password for my ldap users, and now I am trying to enable the password expiration policy
But when I enable it, most of the users became blocked users because they did not change their password recently.

I want to unlock them using php or ldap automatically.. what are the attributes needed to solve this problem?

I tried to reset passwordexpirationtime to be in the future for all of them, but this did not work to unblock them

Any help please?