ensure using default role names when configured
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
931c1cd295
commit
26afe7802f
|
@ -57,7 +57,7 @@ import java.util.Set;
|
|||
* @author Olivier Lamy
|
||||
* @since 2.1
|
||||
*/
|
||||
@Service( "ldapRoleMapper#default" )
|
||||
@Service("ldapRoleMapper#default")
|
||||
public class DefaultLdapRoleMapper
|
||||
implements LdapRoleMapper
|
||||
{
|
||||
|
@ -68,7 +68,7 @@ public class DefaultLdapRoleMapper
|
|||
private LdapConnectionFactory ldapConnectionFactory;
|
||||
|
||||
@Inject
|
||||
@Named( value = "userConfiguration#default" )
|
||||
@Named(value = "userConfiguration#default")
|
||||
private UserConfiguration userConf;
|
||||
|
||||
//---------------------------
|
||||
|
@ -414,6 +414,13 @@ public class DefaultLdapRoleMapper
|
|||
roles.add( role );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( this.useDefaultRoleName )
|
||||
{
|
||||
roles.add( group );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return new ArrayList<String>( roles );
|
||||
|
@ -800,7 +807,6 @@ public class DefaultLdapRoleMapper
|
|||
}
|
||||
|
||||
|
||||
|
||||
public String getUserIdAttribute()
|
||||
{
|
||||
return userIdAttribute;
|
||||
|
|
Loading…
Reference in New Issue