LDAPGateway::changePassword
Changes user password via LDAP.
Change password is different to administrative password reset in that it will respect the password history policy. This is achieved by sending a remove followed by an add in one batch (which is different to an ordinary attribute modification operation).
Signature
public function changePassword(string
$dn,
string
$password,
string
$oldPassword )
Parameters
$dn
— string- Location to update the entry at.
$password
— string- New password to set.
$oldPassword
— string- Old password is needed to trigger a password change.