Skip to content
Snippets Groups Projects
Commit 16225a37 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Log the user before it gets deleted to see why it dies

parent 6490d756
No related branches found
No related tags found
No related merge requests found
......@@ -389,6 +389,7 @@ class auth_plugin_ldap_syncplus extends auth_plugin_ldap {
$graceperiod = max(intval($this->config->removeuser_graceperiod), 0);
// Fix problems if grace period setting was negative or no number.
if (time() - $user->timemodified >= $graceperiod * 24 * 3600) {
mtrace(sprintf("\t try to delete user: %s (%d)", $user->username, $user->id));
if (delete_user($user)) {
mtrace("\t".get_string('auth_dbdeleteuser', 'auth_db', array('name'=>$user->username, 'id'=>$user->id)));
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment