mirror of https://github.com/apache/archiva.git
add component decl to get around PLXREDBACK-82 and activate the environment checker to unlock admin accounts on restart again
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@541103 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba431ab8e5
commit
503dc28855
|
@ -210,6 +210,29 @@
|
|||
<implementation>org.codehaus.plexus.logging.slf4j.Slf4jLoggerManager</implementation>
|
||||
<lifecycle-handler>basic</lifecycle-handler>
|
||||
</component>
|
||||
|
||||
<!--
|
||||
PLXREDBACK-81 bad role hint, redefining here until redback alpha-2 is released.
|
||||
-->
|
||||
<component>
|
||||
<role>org.codehaus.plexus.redback.system.check.EnvironmentCheck</role>
|
||||
<role-hint>locked-admin-check</role-hint>
|
||||
<implementation>org.codehaus.plexus.redback.xwork.checks.security.LockedAdminEnvironmentCheck</implementation>
|
||||
<description>LockedAdminEnvironmentCheck: checks if accounts marked as system administrator are locked
|
||||
and unlocks them on startup.</description>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.users.UserManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<field-name>userManager</field-name>
|
||||
</requirement>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.rbac.RBACManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<field-name>rbacManager</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
</components>
|
||||
|
||||
<lifecycle-handler-manager implementation="org.codehaus.plexus.lifecycle.DefaultLifecycleHandlerManager">
|
||||
|
|
|
@ -36,10 +36,12 @@
|
|||
<interceptor name="redbackSecureActions" class="redbackSecureActionInterceptor"/>
|
||||
<interceptor name="redbackAutoLogin" class="redbackAutoLoginInterceptor"/>
|
||||
<interceptor name="redbackPolicyEnforcement" class="redbackPolicyEnforcementInterceptor"/>
|
||||
<interceptor name="redbackEnvironmentChecker" class="redbackEnvironmentCheckInterceptor"/>
|
||||
<interceptor name="paramFilter" class="com.opensymphony.xwork.interceptor.ParameterFilterInterceptor" />
|
||||
|
||||
<interceptor-stack name="configuredArchivaStack">
|
||||
<interceptor-ref name="redbackForceAdminUser"/>
|
||||
<interceptor-ref name="redbackEnvironmentChecker"/>
|
||||
<interceptor-ref name="redbackAutoLogin"/>
|
||||
<interceptor-ref name="defaultStack"/>
|
||||
<interceptor-ref name="paramFilter">
|
||||
|
|
Loading…
Reference in New Issue