Adjective: Comparative form of nerdy: more nerdy.

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 ""

Enter the Directory manager password when prompted. Grab the “dn:” from the return, it will look something like this;


Then delete the entry using the string from above;

ldapdelete -D "cn=Directory Manager" -W ",cn=computers,cn=accounts,dc=serverhostna,dc=me"

Then you should be able to add your host in the web interface/enroll it.

Leave a Reply

Your email address will not be published. Required fields are marked *