During upgrade pre-checks, as the result of troubleshooting, or with VDT script you may discover that the PNID and hostname do not match cases. For instance, the PNID says "vCenter" but the hostname says "vcenter". You must update the hostname to match the PNID.
Or post patching, not being able to login using AD account, (invalid credentials) with an IWA identity source.
This is a configuration issue and can occur when a user accidently puts in a hostname and PNID that do not match exactly, including case sensitivity.
Perform the below steps to update the hostname to match the PNID.
service-control --status --all
hostname
/usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
Note: It may be necessary to unregister solutions (Site Recovery Manager, vRealize Operations Manager, Log Insite, etc) before making this change. If you have an issue with a solution, plugin, or 3rd party solution after making this change, revert the snapshot and contact support for that product to verify the required actions after the PNID is updated.