edit these fields and click the MODIFY button:
edit these fields and click the MODIFY button: generateHTMLForm($resultEntry, “empdir_modify.php”, “MODIFY”); closeConnection($linkIdentifier); } else { This block gets executed as a result of submitting the afore-mentioned form. The new parameters are gathered into an associative array to be passed to the server: $dnString = “mail=” . $mail . “,” . “ou=”. $ou . “,” . $baseDN; $adminRDN = “cn=Admin,” . $baseDN; $newEntry[”cn”] = $cn; $newEntry[”sn”] = $sn; $newEntry[”employeenumber”] = $employeenumber; $newEntry[”telephonenumber”] = $telephonenumber; We connect to the server and bind as the user who’s DN is to be modified: $linkIdentifier = connectBindServer($dnString, $userpassword); if ($linkIdentifier) { if ((ldap_modify($linkIdentifier, $dnString, $newEntry)) == false) { displayErrMsg(”LDAP directory modification failed !!”); closeConnection($linkIdentifier); exit; } else { generateHTMLHeader(”The entry was modified succesfully”); returnToMain(); } } else { displayErrMsg(”Connection to LDAP server failed”); exit; } } ?> This is an example of a typical modification screen: This function is invoked when the user clicks the Delete link in the Edit column of the search results: Note: If you are looking for good and quality webspace to host and run your java application check professional java hosting services