Fix for MRM-1873 which broke AD group assignments
Escaping only needed in the LDAP filter string
This commit is contained in:
parent
fc28ad1769
commit
d0bc52fff1
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue