AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 608961
Accepted
Alex
Alex
Asked: 2014-07-01 04:26:20 +0800 CST2014-07-01 04:26:20 +0800 CST 2014-07-01 04:26:20 +0800 CST

无法更改 FreeIPA 管理员的密码 - “当前密码的最短使用期限尚未过期”

  • 772

我们有一个基于 FreeIPA 的系统,管理员密码已过期,需要更改,但通过 SSH 的标准密码更改程序失败:

sashka@cellar ~ ssh [email protected]
[email protected]'s password: 
Password expired. Change your password now.
Last failed login: Mon Jun 30 15:38:21 MSK 2014 from 116.10.191.195 on ssh:notty
There were 6071 failed login attempts since the last successful login.
Last login: Wed Apr 16 19:28:54 2014
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user admin.
Current Password: 
New password: 
Retype new password: 
Password change failed. Server message: Current password's minimum life has not expired

Password not changed.
passwd: Authentication token manipulation error
Connection to ipa.xxxxxxxxxx.com closed.

如果我们尝试使用passwd它更改密码也会失败并显示相同的错误消息:

[admin@ipa ~]$ passwd
Changing password for user admin.
Current Password: 
New password: 
Retype new password: 
Password change failed. Server message: Current password's minimum life has not expired

Password not changed.
passwd: Authentication token manipulation error
[admin@ipa ~]$

我们应该怎么做才能解决这种情况?

kerberos
  • 1 1 个回答
  • 5780 Views

1 个回答

  • Voted
  1. Best Answer
    Michael Hampton
    2014-07-01T06:31:58+08:002014-07-01T06:31:58+08:00

    听起来您以某种方式创建了一个密码策略,其最短密码寿命比最长密码寿命长。

    请记住,最大值以天为单位指定,而最小值以小时为单位指定。如果你把它们混合起来,那么很容易做到这一点。

    要确认它,请检查现有的密码策略:

    ipa pwpolicy-find
    
    ipa pwpolicy-show global_policy
    

    使用第二个管理员帐户登录并更改密码策略。

    例如,设置最短寿命为 7 天,最长寿命为 90 天:

    从命令行:

    ipa pwpolicy-mod global_policy --minlife 168 --maxlife 90
    

    从网络用户界面:

    更改 IPA 密码策略 Web UI

    最小寿命也可以设置为零以禁用它。

    • 7

相关问题

  • 为 WSS Reporting Services 设置 Kerberos 身份验证所涉及的风险

  • 针对 Active Directory 对 OpenBSD 进行身份验证

  • MAC 10.4.11 & Win2k8

  • 有没有办法让 Kerberos 凭证委托两次?为什么不?

  • Windows 可以与 LDAP 集成吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve