mirror of https://github.com/apache/archiva.git
support more than one value for user manager impls from security.properties
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1429339 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
023a0b4fe1
commit
007258a9ed
|
@ -77,9 +77,20 @@ public class DefaultRedbackRuntimeConfigurationAdmin
|
||||||
// so migrate if available
|
// so migrate if available
|
||||||
String userManagerImpl = userConfiguration.getString( UserConfigurationKeys.USER_MANAGER_IMPL );
|
String userManagerImpl = userConfiguration.getString( UserConfigurationKeys.USER_MANAGER_IMPL );
|
||||||
if ( StringUtils.isNotEmpty( userManagerImpl ) )
|
if ( StringUtils.isNotEmpty( userManagerImpl ) )
|
||||||
|
{
|
||||||
|
if ( StringUtils.contains( userManagerImpl, ',' ) )
|
||||||
|
{
|
||||||
|
String[] impls = StringUtils.split( userManagerImpl, ',' );
|
||||||
|
for ( String impl : impls )
|
||||||
|
{
|
||||||
|
redbackRuntimeConfiguration.getUserManagerImpls().add( impl );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
redbackRuntimeConfiguration.getUserManagerImpls().add( userManagerImpl );
|
redbackRuntimeConfiguration.getUserManagerImpls().add( userManagerImpl );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// now ldap
|
// now ldap
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue