mirror of
https://github.com/haiwen/ccnet-server.git
synced 2025-09-15 22:39:34 +00:00
[ldap] Print warning if user not found when login.
This commit is contained in:
@@ -1101,6 +1101,9 @@ get_emailuser (CcnetUserManager *manager,
|
||||
|
||||
users = ldap_list_users (manager, email, -1, -1);
|
||||
if (!users) {
|
||||
/* Only print warning if this function is called in login. */
|
||||
if (import)
|
||||
ccnet_warning ("Cannot find user %s in LDAP.\n", email);
|
||||
g_free (email_down);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user