apache-archiva-2.2.0 密码过期问题的解决
来源:互联网 发布:安装ubuntu双系统黑屏 编辑:程序博客网 时间:2024/06/04 18:31
apache-archiva-2.2.0 有一个特点是密码过一段时间过期需要重新设置
可以通过reset password email 进行重新设置,但是在conf/jetty.xml里的smtp host 没搞清楚,reset 的邮件总是发不出去
最简单的办法 apache-archiva-2.2.0/data/databases 下面的users删除掉,这样进行页面的时候就可以重新设置新的用户和密码了
注:这需要重新设置一下guest的权限,否则无法下载jar包
最后在官网上有一个办法 可以让密码不失效:
Archiva Security Configuration
Security properties and password rules can be configured in the security.properties file, which by default is searched for in:
- ~/.m2/security.properties
- conf/security.properties in the Archiva installation
(In the above list, ~ is the home directory of the user who is running Archiva.)
Following are some of the properties you can modify. For a complete list, consult the default properties file in Redback's svn repo: config-defaults.properties
# Security Policies#security.policy.password.encoder=security.policy.password.previous.count=6security.policy.password.expiration.days=90security.policy.password.expiration.enabled=truesecurity.policy.allowed.login.attempt=3# Password Rulessecurity.policy.password.rule.alphanumeric.enabled=falsesecurity.policy.password.rule.alphacount.enabled=truesecurity.policy.password.rule.alphacount.minimum=1security.policy.password.rule.characterlength.enabled=truesecurity.policy.password.rule.characterlength.minimum=1security.policy.password.rule.characterlength.maximum=8security.policy.password.rule.musthave.enabled=truesecurity.policy.password.rule.numericalcount.enabled=truesecurity.policy.password.rule.numericalcount.minimum=1security.policy.password.rule.reuse.enabled=truesecurity.policy.password.rule.nowhitespace.enabled=true
Note: If installed standalone, Archiva's list of configuration files is itself configurable, and can be found in: apps/archiva/WEB-INF/applicationContext.xml
Values from sources
<bean name="commons-configuration" class="org.apache.archiva.redback.components.registry.commons.CommonsConfigurationRegistry" init-method="initialize"> <property name="properties"> <value> <![CDATA[ <configuration> <system/> <jndi prefix="java:comp/env" config-optional="true"/> <xml fileName="${user.home}/.m2/archiva.xml" config-optional="true" config-name="org.apache.archiva.user" config-at="org.apache.archiva"/> <xml fileName="${user.home}/.m2/shared.xml" config-optional="true" config-name="org.apache.maven.shared.app.user" config-at="org.apache.maven.shared.app" config-forceCreate="true"/> <properties fileName="${user.home}/.m2/security.properties" config-optional="true" config-at="org.apache.archiva.redback"/> <properties fileName="${user.home}/.m2/archiva.properties" config-optional="true" config-at="org.apache.archiva.redback"/> <xml fileName="${appserver.base}/conf/archiva.xml" config-optional="true" config-name="org.apache.archiva.base" config-at="org.apache.archiva"/> <xml fileName="${appserver.base}/conf/shared.xml" config-optional="true" config-name="org.apache.maven.shared.app.base" config-at="org.apache.maven.shared.app"/> <xml fileName="${appserver.base}/conf/common.xml" config-optional="true"/> <properties fileName="${appserver.base}/conf/security.properties" config-optional="true" config-at="org.apache.archiva.redback"/> <xml fileName="${appserver.home}/conf/archiva.xml" config-optional="true" config-at="org.apache.archiva"/> <xml fileName="${appserver.home}/conf/shared.xml" config-optional="true" config-at="org.apache.maven.shared.app"/> <xml fileName="${appserver.home}/conf/common.xml" config-optional="true"/> <properties fileName="${appserver.home}/conf/security.properties" config-optional="true" config-at="org.apache.archiva.redback"/> <properties fileName="org/apache/archiva/redback-security.properties" config-at="org.apache.archiva.redback"/> </configuration> ]]> </value> </property> </bean>
- apache-archiva-2.2.0 密码过期问题的解决
- 解决oracle11密码过期的问题
- 解决Windows Server 2008 R2的密码过期问题
- 解决Oracle 11g密码过期问题
- Navicat过期问题的解决
- 解决PLSQL过期的问题
- matlab过期问题的解决
- 解决websphere过期的问题
- DB2密码过期解决
- 自定义Apache archiva安全策略
- apache archiva安装教程
- oracle11g密码过期问题
- oracle11g 密码过期问题
- 登录密码过期问题!!
- Oracle密码过期问题
- 如何解决 OpenQuant 过期的问题
- ORACLE11g关于用户密码过期问题的解决
- 解决Ubuntu Chrome Adobe过期的问题
- GVim for windows 简单使用教程
- 重载和多态之间的关系?!(C++初学者)
- no lable views point to this text field with an android:lablFor=”@+id/@+id
- java注解
- 将 Sublime 3 打造成 Python/Django IDE开发利器
- apache-archiva-2.2.0 密码过期问题的解决
- Git的使用和相关配置
- SQL SERVER 2008 配置管理器出现“远程过程调用失败”【0x800706be】解决办法
- YII2中Codeception的安装
- cf 580 c(邻接表+dfs)
- spring任务调度器quartz
- LeetCode-OJ
- Codeforces Round #320 (Div. 2)
- 新浪云Git代码仓库使用入门