Although this is rather uncommon in a production environment, it can happen that your admin account is being locked due to too many failed password attempts for example. For settings on that, consult your password policy that is responsible for the admin account.
When the admin account is locked and no other account is present that has administrative privileges in ipa, the best option is to unlock the admin account using the Directory Manager with ldapmodify:
[archy@ipa02 ~]$ # ldapmodify -x -D 'cn=Directory Manager' -W <<EOF
dn: uid=admin,cn=users,cn=accounts,dc=lab,dc=example,dc=net
changetype: modify
replace: nsaccountlock
nsaccountlock: false
EOF
Now since we don't want this to happen again, let's exlude them in the '/etc/sssd/sssd.conf' file, add this line to the '[nss]' section in sssd
[archy@ipa02 ~]$ vim /etc/sssd/sssd.conf
filter_users = root, admin
Now clear sssd's cache and restart it
[archy@ipa02 ~]$ sudo sss_cache -E
[archy@ipa02 ~]$ sudo systemctl restart sssd.service
That's it, your admin account should now work again.
Feel free to comment and / or suggest a topic.
Comments
Post a Comment