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.
Contact the vendor for additional information.