Update OpenLDAP userPassword

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • stegger

    Update OpenLDAP userPassword

    I am trying to update a users password on OpenLDAP:

    $new["userPasswo rd"] = '{md5}' . base64_encode(p ack('H*',
    md5($newpass_in _plaintext)));
    $this->result = ldap_modify($co nnection,
    "uid=testuser,c n=users,dc=test ,dc=net", $new);

    I am authenticated and the operation succeeds (no errors), but the
    password does not change.
    How can I properly change a userPassword value in OpenLDAP?
    Thank you for any suggestions.

    --
    Stefan
Working...