Skip to content
Snippets Groups Projects
Commit b501c24e authored by srosse's avatar srosse
Browse files

no-jira: reduce level of user sync to WARN by LDAP

parent c9862792
No related branches found
No related tags found
No related merge requests found
......@@ -592,11 +592,11 @@ public class LDAPLoginManagerImpl implements LDAPLoginManager, AuthenticationPro
String email = getAttributeValue(userAttributes.get(syncConfiguration.getOlatPropertyToLdapAttribute(UserConstants.EMAIL)));
// Lookup user
if (securityManager.findIdentityByLogin(uid) != null) {
log.error("Can't create user with username='{}', this username does already exist in the database", uid);
log.warn("Can't create user with username='{}', this username does already exist in the database", uid);
return null;
}
if(!securityModule.isIdentityNameAutoGenerated() && securityManager.findIdentityByName(uid) != null) {
log.error("Can't create user with username='{}', this identity name does already exist in the database", uid);
log.warn("Can't create user with username='{}', this identity name does already exist in the database", uid);
return null;
}
if(StringHelper.containsNonWhitespace(email) || userModule.isEmailMandatory()) {
......@@ -606,7 +606,7 @@ public class LDAPLoginManagerImpl implements LDAPLoginManager, AuthenticationPro
return null;
}
if (!userManager.isEmailAllowed(email)) {
log.error("Can't create user {} with email='{}', a user with that email does already exist in the database", uid, email);
log.warn("Can't create user {} with email='{}', a user with that email does already exist in the database", uid, email);
return null;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment