意外禁用IPA服务器上的pipe理员帐户

我在Centos 6上运行ipa-server。我正在浏览禁用帐户的用户,并意外禁用了“pipe理员”帐户。 现在我无法做任何事情。 有什么方法可以恢复对这个帐户的访问? 还是为了防止这种情况发生?

找出pipe理员用户的确切DN:

$ ipa user-show admin --all --raw | grep dn 

…并使用CN =目录pipe理器与FreeIPA安装过程中input的密码(你还记得吗,是吗?),并启用帐户:

 $ ldapmodify -h ipa.server.fqdn -D "cn=Directory Manager" -ZZ -x -W dn: uid=admin,cn=users,cn=accounts,dc=example,dc=com changetype: modify replace: nsaccountlock nsaccountlock: false 

使用其他帐户login并重新启用它,如果您有这样的帐户(除了最小的部署外,您应该使用其他帐户)。

在EL 6.4中包含的FreeIPA 3.0中, 不能再禁用最后一个pipe理员帐户 。