On 26/6/06 7:40, Justin Alcorn <[EMAIL PROTECTED]> wrote:

> Unfortunately, our AD will not allow an active user to not have a
> password.  So the delete and add fails.  Therefore, I had to use the

Well that's just broken, and in violation of the LDAP spec.

What happens if your modify operation tries to add the new value and then
delete the old one? ie the opposite order to this line:

> # attempt the self-modify.  Unfortunately, it will always fail for now
> $mesg = $ldap->modify($dn,
>                  changes => [
>                          delete => [ unicodePwd => $oldUniPW ],
>                          add    => [ unicodePwd => $newUniPW ] ]);

Cheers,

Chris


Reply via email to