26 07 2019
FreeIPA: Manually deleting host in LDAP
I had a host in FreeIPA that only seemed to exist in the host search, and when you tried to delete it, it would error. So you couldn’t re-add it to get the host to enroll.
First run ldap search to find the dn it’s using;
ldapsearch -xLLL -D "cn=directory manager" -W "fqdn=server3.serverhostna.me"
Enter the Directory manager password when prompted. Grab the “dn:” from the return, it will look something like this;
dn: fqdn=server3.serverhostna.me,cn=computers,cn=accounts,dc=serverhostna,dc=me
Then delete the entry using the string from above;
ldapdelete -D "cn=Directory Manager" -W "fqdn=server3.serverhostna.me,cn=computers,cn=accounts,dc=serverhostna,dc=me"
Then you should be able to add your host in the web interface/enroll it.
You (root) are not allowed to access to (crontab) because of pam configuration. MongoDB notes