I am trying to change the Active Directory password through php ldap. The connection is fine, I can bind it to an admin account but I keep getting this error:
Warning: ldap_mod_replace(): Modify: No such object in ...
/*Change password*/
if(ldap_mod_replace($ldap_con, "uid=".$user_name.$dc_str, $attr)) {
echo "<li /> ".$user_name." = Succeded";
}else { echo "<li />".$user_name." = Failed"; }
Any ideas?