Archiva忽略Security.properties [英] Archiva ignoring Security.properties

查看:77
本文介绍了Archiva忽略Security.properties的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好像archiva 2.2完全忽略了安全性属性
我正在关注此文档: 我已经在

Seems like archiva 2.2 is completely ignoring Security properties
I am following this document: I have set up the security.properties file under

D:\Apache\Archiva-2.2.0\conf

当我在Archiva UI中为用户设置新密码时,我仍然得到:

When I am setting a new password for a user in Archiva UI I am still getting:

     You must provide a password containing at least 1 numeric character(s).   

security.properties内容:

security.properties content:

# Security Policies
#security.policy.password.encoder=
security.policy.password.previous.count=9999
security.policy.password.expiration.days=99999
security.policy.password.expiration.enabled=false
security.policy.allowed.login.attempt=3

# Password Rules
security.policy.password.rule.alphanumeric.enabled=false
security.policy.password.rule.alphacount.enabled=false
security.policy.password.rule.alphacount.minimum=0
security.policy.password.rule.characterlength.enabled=true
security.policy.password.rule.characterlength.minimum=3
security.policy.password.rule.characterlength.maximum=0
security.policy.password.rule.musthave.enabled=false
security.policy.password.rule.numericalcount.enabled=false
security.policy.password.rule.numericalcount.minimum=0
security.policy.password.rule.reuse.enabled=false
security.policy.password.rule.nowhitespace.enabled=true

推荐答案

停止跑步,并备份您的 conf/archiva.xml 文件.

Stop her running and make a backup of your conf/archiva.xml file.

示例:

service archiva stop
cp archiva.xml archiva.xml.orig

在主XML配置文件中编辑要修改的配置值: conf/archiva.xml

Edit the config values you want to modify within the main XML configuration file: conf/archiva.xml

更改数字字符计数:

<numericalcount>
    <minimum>0</minimum>
    <enabled>false</enabled>
</numericalcount>

更改密码有效期限:

<expiration>
    <enabled>false</enabled>
    <days>999999</days>
</expiration>

这些值应该已经在您的配置文件中(它们在我的文件中).可能是在我尝试通过Web UI对其进行配置而未成功之后将它们复制到那里的.

These values should already be in your config file (they were in mine). Perhaps they were copied there after my unsuccessful attempts to configure them through the web UI.

此外,在进行更改时,防止任何用户缓存行为:

Additionally, prevent any user caching behaviour while you're making changes:

<useUsersCache>false</useUsersCache>

再次启动她:

service archiva start

这篇关于Archiva忽略Security.properties的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆