Opensource with life.
print "Change password "; if(ldap_mod_replace ($ldapconn, "uid=".$username.",dc=example,dc=com", array('userpassword' => "{MD5}".base64_encode(pack("H*",md5($newpass))) { print "succeded"; } else { print "failed"; } print ".\n";
Change password "; if(ldap_mod_replace ($ldapconn, "uid=".$username.",dc=example,dc=com", array('userpassword' => "{MD5}".base64_encode(pack("H*",md5($newpass))) { print "succeded"; } else { print "failed"; } print ".
No comments:
Post a Comment