If your Kerberos service doesn't renew when you remove localhost.plist on macOS Server
Removing the localhost.plist file might prevent you from connecting to some Wi-Fi networks.
Some third-party image creation tools, applications, and troubleshooting methods delete the localhost file located at /var/db/dslocal/nodes/Default/computers/localhost.plist.
If you delete this file, the KerberosServices section of the plist will be empty after macOS automatically creates a new localhost.plist file. When your KerberosServices section is empty, clients bound to a directory system can't create Kerberos principals. Any Mac bound to your directory might not be able to connect to related 802.1x Wi-Fi networks.
If this file has been removed on your Mac, use the terminal command below to recreate the kerberosServices section of the plist:
sudo dscl . -create Computers/localhost kerberosServices host afpserver cifs vnc
You don't need to rebind to your Kerberos directory after performing this step.
Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.