Fix for MRM-1873 which broke AD group assignments

Escaping only needed in the LDAP filter string
This commit is contained in:
Sascha Vogt 2015-05-28 12:00:34 +02:00
parent fc28ad1769
commit d0bc52fff1
1 changed files with 1 additions and 3 deletions

View File

@ -392,11 +392,9 @@ public class DefaultLdapRoleMapper
groupEntry = builder.toString();
}
groupEntry = Rdn.escapeValue(groupEntry);
String filter =
new StringBuilder().append( "(&" ).append( "(objectClass=" + getLdapGroupClass() + ")" ).append(
"(" ).append( getLdapGroupMember() ).append( "=" ).append( groupEntry ).append( ")" ).append(
"(" ).append( getLdapGroupMember() ).append( "=" ).append( Rdn.escapeValue(groupEntry) ).append( ")" ).append(
")" ).toString();
log.debug( "filter: {}", filter );