KEYCLOAK-1359 LDAP tests update
This commit is contained in:
1 parent
b27f18c380
commit
496062ef0c
7 files changed
+8
-13
No files matched your search
@@ -19,6 +19,7 @@ public class LDAPConstants {
|
||||
|
||||
public static final String CONNECTION_URL = "connectionUrl";
|
||||
public static final String SECURITY_PROTOCOL = "securityProtocol";
|
||||
public static final String BASE_DN = "baseDn"; // used for tests only
|
||||
public static final String USERS_DN = "usersDn";
|
||||
public static final String BIND_DN = "bindDn";
|
||||
public static final String BIND_CREDENTIAL = "bindCredential";
|
||||
|
||||
@@ -110,7 +110,7 @@ public class UserFederationManager implements UserProvider {
|
||||
if (realmModel == null) return;
|
||||
UserModel deletedUser = tx.userStorage().getUserById(user.getId(), realmModel);
|
||||
tx.userStorage().removeUser(realmModel, deletedUser);
|
||||
logger.debugf("Removed invalid user '%s'", user.getUsername());
|
||||
logger.infof("Removed invalid user '%s'", user.getUsername());
|
||||
tx.getTransaction().commit();
|
||||
} finally {
|
||||
tx.close();
|
||||
|
||||
Reference in new issue
Block a user