ldap - PHP Warning: ldap_mod_replace(): Modify: Server is unwilling to perform in -


below code getting error as:
php warning: ldap_mod_replace(): modify: server unwilling perform in

here code:

$ip = "10.60.0.12"; $ldaps_url = "ldaps://$ip"; $port = 636; $ad = ldap_connect($ldaps_url, $port)  $ad->set_option(ldap_opt_protocol_version, 3); $ad->set_option(ldap_opt_referrals, 0); $b = $ad->bind($config['ad']['binddn'], $config['ad']['bindpassword']);      $newpassword = "fssfgds^^&&";  $userdata["unicodepwd"] = $newpassword;    $userdata["pwdlastset"] = - 1; $userdata["useraccountcontrol"] = 512; $result = $ad->mod_replace($dn, $userdata); 

not sure went wrong in above code, please , tell me how fix issue?

server unwilling perform means you're not binding user sufficient rights perform action.

it's credentials/access control issue ldap not code.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -