Hello, thanks for all the info. I've tried adding {crypt} in front of the password but now I get invalid syntax for userPassword. Here's what exactly I do, it must be something stupid ... $password = "{crypt}".$hashedpwd; $mesg=$ldap->modify($dn, changes => [ replace => [ 'userPassword' => [ $password ] ]] ); Thanks again, Jo