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.
PHP Code:
$encodedPass = "{SHA}" . base64_encode( pack( "H*", sha1( $pass ) ) );
$r=ldap_mod_replace($ldapconn,"uid=".
$username.",cn=users,dc=server,dc=domain,dc=com", $info);
This is leading me to believe that OS X Leopard Server Open Directory
isn't using userPassword for OD authentication?
Or maybe I am just encoding it wrong??
Thanks!