Hello All,
Anyone know how to change OS X Open Directory password using php ldap_mod_replace.
This is what I am using and it is updating the userPassword entry but I cannot authenticate with the new password.
$encodedPass = "{SHA}" . base64_encode( pack( "H*", sha1( $pass ) ) );
$r=ldap_mod_replace($ldapconn,"uid=".$username.",cn=users,dc=server,dc=domain,dc=com", $info);
Thanks!
Anyone know how to change OS X Open Directory password using php ldap_mod_replace.
This is what I am using and it is updating the userPassword entry but I cannot authenticate with the new password.
$encodedPass = "{SHA}" . base64_encode( pack( "H*", sha1( $pass ) ) );
$r=ldap_mod_replace($ldapconn,"uid=".$username.",cn=users,dc=server,dc=domain,dc=com", $info);
Thanks!