}
else {
@ldap_close($ldapconnection);
- print_error('auth_ldap_noconnect','auth',$this->config->host_url);
+ print_error('auth_ldap_noconnect','auth','',$this->config->host_url);
}
return false;
}
$user = get_record('user', 'username', $username, 'mnethostid', $CFG->mnet_localhost_id);
if (empty($user)) { // trouble
error_log("Cannot update non-existent user: ".stripslashes($username));
- print_error('auth_dbusernotexist','auth',$username);
+ print_error('auth_dbusernotexist','auth','',$username);
die;
}
}
//If any of servers are alive we have already returned connection
- print_error('auth_ldap_noconnect_all','auth',$this->config->user_type);
+ print_error('auth_ldap_noconnect_all','auth','', $debuginfo);
return false;
}