get ldap mapping if existing from security.properties

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430608 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-01-08 22:47:29 +00:00
parent d63d6355f1
commit 8dbdf40af5
2 changed files with 3 additions and 2 deletions

View File

@ -355,7 +355,8 @@ public class DefaultLdapRoleMapper
{
if ( key.startsWith( UserConfigurationKeys.LDAP_GROUPS_ROLE_START_KEY ) )
{
map.put( key, userConf.getString( key ) );
map.put( StringUtils.substringAfter( key, UserConfigurationKeys.LDAP_GROUPS_ROLE_START_KEY ),
userConf.getString( key ) );
}
}

View File

@ -226,6 +226,6 @@ public class DefaultUserConfiguration
public Collection<String> getKeys()
{
return this.registry.getSubset( PREFIX ).getKeys();
return this.registry.getSubset( PREFIX ).getFullKeys();
}
}