The steps you mention seem fine to me Roberto, Detlev has detailed an alternative.

If you lose a client and need to rebuild (i.e. you didn't get chance to run the "--uninstall" option) then you can also just delete the host entry from IPA through the web gui or ipa command line before running the ipa-client-install (join) command.

When I have issues with clients (very infrequent and I have some 5000 clients) I find that running the "--uninstall" and then the install (steps 1 and 3) fix most issues without having to look into them (blind fix for the time wary!)

Regards
Angus


From: Detlev Habicht via FreeIPA-users <freeipa-users@lists.fedorahosted.org>
Sent: 04 December 2020 11:59
To: FreeIPA users list <freeipa-users@lists.fedorahosted.org>
Cc: Detlev Habicht <detlev.habicht@ims.uni-hannover.de>
Subject: [Freeipa-users] Re: Reinstalling client's OS
 
Hi,

you can reinstall a client with something like this:

/usr/sbin/ipa-client-install --force --unattended —domain=xxx —realm=xxx —server=xxx —server=yyy --force-ntpd —keytab=./krb5.keytab --ca-cert-file=./ca.crt

But you must save your keytab and ca file before.

For me it is working …

Detlev

--
  Detlev  | Institut fuer Mikroelektronische Systeme
  Habicht | D-30167 Hannover +49 511 76219662 habicht@ims.uni-hannover.de
  --------+-------- Handy    +49 172 5415752  ---------------------------



> Am 04.12.2020 um 11:46 schrieb Roberto Cornacchia via FreeIPA-users <freeipa-users@lists.fedorahosted.org>:
>
> Hello,
>
> Apologies if this is a trivial question, I could not find an obvious answer anywhere.
>
> If I want to reinstall from scratch the OS of an already enrolled client, is this the right procedure?
>
> 1. ipa-client-install --uninstall
> 2. <reinstall OS>
> 3. ipa-client-install
>
> Best regards,
> Roberto
> _______________________________________________
> FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
> To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org
> Fedora Code of Conduct: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.fedoraproject.org%2Fen-US%2Fproject%2Fcode-of-conduct%2F&amp;data=04%7C01%7C%7Ca51e09497c794cfb098908d89843bc39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637426763967360942%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=fyz1F%2Bu9GU4%2BSe1iqHKETf1aXIetl7jt5RNrWaThsIs%3D&amp;reserved=0
> List Guidelines: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffedoraproject.org%2Fwiki%2FMailing_list_guidelines&amp;data=04%7C01%7C%7Ca51e09497c794cfb098908d89843bc39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637426763967360942%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=fdVD5aYltsHDH9OfcX3M7tRNSA5gQuIex%2BsUEXnEjpI%3D&amp;reserved=0
> List Archives: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.fedorahosted.org%2Farchives%2Flist%2Ffreeipa-users%40lists.fedorahosted.org&amp;data=04%7C01%7C%7Ca51e09497c794cfb098908d89843bc39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637426763967360942%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=oIA%2BVUaGSmbN6BNGGeGFSApHNGWG6aolwCkd8CVNWHg%3D&amp;reserved=0
_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.fedoraproject.org%2Fen-US%2Fproject%2Fcode-of-conduct%2F&amp;data=04%7C01%7C%7Ca51e09497c794cfb098908d89843bc39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637426763967360942%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=fyz1F%2Bu9GU4%2BSe1iqHKETf1aXIetl7jt5RNrWaThsIs%3D&amp;reserved=0
List Guidelines: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffedoraproject.org%2Fwiki%2FMailing_list_guidelines&amp;data=04%7C01%7C%7Ca51e09497c794cfb098908d89843bc39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637426763967360942%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=fdVD5aYltsHDH9OfcX3M7tRNSA5gQuIex%2BsUEXnEjpI%3D&amp;reserved=0
List Archives: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.fedorahosted.org%2Farchives%2Flist%2Ffreeipa-users%40lists.fedorahosted.org&amp;data=04%7C01%7C%7Ca51e09497c794cfb098908d89843bc39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637426763967370935%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Qdfjr8UsivPZLJS9uOam0EwEasVvanYpFnYIF6BkVnE%3D&amp;reserved=0