<version>1.4.0+</version>
<type>String</type>
</field>
+ <field>
+ <name>baseGroupsDn</name>
+ <description>The LDAP base dn for groups (if empty baseDn is used).</description>
+ <version>1.4.0+</version>
+ <type>String</type>
+ </field>
<field>
<name>contextFactory</name>
<description>contextFactory to use.</description>
* @author Olivier Lamy
* @since 1.4-M4
*/
-@Service( "userConfiguration#archiva" )
+@Service("userConfiguration#archiva")
public class DefaultRedbackRuntimeConfigurationAdmin
implements RedbackRuntimeConfigurationAdmin, UserConfiguration
{
private ArchivaConfiguration archivaConfiguration;
@Inject
- @Named( value = "userConfiguration#redback" )
+ @Named(value = "userConfiguration#redback")
UserConfiguration userConfiguration;
@Inject
- @Named( value = "cache#users" )
+ @Named(value = "cache#users")
private Cache usersCache;
@PostConstruct
ldapConfiguration.setSsl( userConfiguration.getBoolean( UserConfigurationKeys.LDAP_SSL, false ) );
ldapConfiguration.setBaseDn(
userConfiguration.getConcatenatedList( UserConfigurationKeys.LDAP_BASEDN, null ) );
+
+ ldapConfiguration.setBaseGroupsDn(
+ userConfiguration.getConcatenatedList( UserConfigurationKeys.LDAP_GROUPS_BASEDN,
+ ldapConfiguration.getBaseDn() ) );
+
ldapConfiguration.setContextFactory(
userConfiguration.getString( UserConfigurationKeys.LDAP_CONTEX_FACTORY, null ) );
ldapConfiguration.setBindDn(
{
return getRedbackRuntimeConfiguration().getLdapConfiguration().getBindDn();
}
+ if ( UserConfigurationKeys.LDAP_GROUPS_BASEDN.equals( key ) )
+ {
+ return getRedbackRuntimeConfiguration().getLdapConfiguration().getBaseGroupsDn();
+ }
return userConfiguration.getConcatenatedList( key, defaultValue );
}
import org.springframework.stereotype.Service;
import javax.inject.Inject;
+import javax.inject.Named;
import javax.ws.rs.core.Response;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
private RepositoryScanner scanner;
+ // display spring scheduled
+ //@Inject @Named (value="springScheduler");
+
@Inject
public DefaultSystemStatusService( ApplicationContext applicationContext, RepositoryScanner scanner )