1
0
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:
Jonathan Xu
2016-12-29 17:54:20 +08:00
parent 77d685d2a5
commit 99cdad1d11

View File

@@ -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;
}