Displaying 1 result from an estimated 1 matches for "updateldappassword".
2014 Feb 17
1
ldap_modify change password
Hello,
I would like to change samba4 AD user's password using php. Here's my code:
function UpdateLdapPassword($username, $newpassword)
{
global $ds;
global $rdn;
$entry["clearTextPassword"][0]=base64_encode(iconv('UTF-8','UTF-16LE',$newpassword));
$bReturn= ldap_modify ($ds, $rdn, $entry);
Debug ("msg:...