Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ldap password update on OS X Open Directory

Status
Not open for further replies.

AppleTek

IS-IT--Management
Jun 2, 2005
4
0
0
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top