From 31d0365e8563bb58a4c3b6d58784ca89c5c30859 Mon Sep 17 00:00:00 2001 From: mposolda Date: Wed, 3 Jun 2015 19:57:00 +0200 Subject: [PATCH] KEYCLOAK-1359 More LDAP fixes --- .../federation/ldap/mappers/RoleLDAPFederationMapper.java | 2 +- .../java/org/keycloak/testsuite/ldap/LDAPTestConfiguration.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/federation/ldap/src/main/java/org/keycloak/federation/ldap/mappers/RoleLDAPFederationMapper.java b/federation/ldap/src/main/java/org/keycloak/federation/ldap/mappers/RoleLDAPFederationMapper.java index 0116db7877..348513aa82 100644 --- a/federation/ldap/src/main/java/org/keycloak/federation/ldap/mappers/RoleLDAPFederationMapper.java +++ b/federation/ldap/src/main/java/org/keycloak/federation/ldap/mappers/RoleLDAPFederationMapper.java @@ -209,7 +209,7 @@ public class RoleLDAPFederationMapper extends AbstractLDAPFederationMapper { roleDn.addFirst(roleNameAttribute, roleName); ldapObject.setDn(roleDn); - logger.infof("Creating role to [%s] to LDAP with DN [%s]", roleName, roleDn.toString()); + logger.infof("Creating role [%s] to LDAP with DN [%s]", roleName, roleDn.toString()); ldapProvider.getLdapIdentityStore().add(ldapObject); return ldapObject; } diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/ldap/LDAPTestConfiguration.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/ldap/LDAPTestConfiguration.java index 078a09efdb..e5d8408f90 100644 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/ldap/LDAPTestConfiguration.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/ldap/LDAPTestConfiguration.java @@ -37,6 +37,7 @@ public class LDAPTestConfiguration { PROP_MAPPINGS.put(LDAPConstants.PAGINATION, "idm.test.ldap.pagination"); PROP_MAPPINGS.put(LDAPConstants.BATCH_SIZE_FOR_SYNC, "idm.test.ldap.batch.size.for.sync"); PROP_MAPPINGS.put(LDAPConstants.USERNAME_LDAP_ATTRIBUTE, "idm.test.ldap.username.ldap.attribute"); + PROP_MAPPINGS.put(LDAPConstants.RDN_LDAP_ATTRIBUTE, "idm.test.ldap.rdn.ldap.attribute"); PROP_MAPPINGS.put(LDAPConstants.USER_OBJECT_CLASSES, "idm.test.ldap.user.object.classes"); PROP_MAPPINGS.put(LDAPConstants.USER_ACCOUNT_CONTROLS_AFTER_PASSWORD_UPDATE, "idm.test.ldap.user.account.controls.after.password.update"); PROP_MAPPINGS.put(LDAPConstants.EDIT_MODE, "idm.test.ldap.edit.mode");