Open an SSH session to the vCenter server and log in as the root user.
Ensure that the vmdir service is in Normal (3) state and not in any other state. If the vCenter server is in linked mode, the vmdir state should be Normal (3) in all the vCenter Servers.
To validate the vmdird state, execute the following command.
/usr/lib/vmware-vmafd/bin/dir-cli state get
Navigate to the vCenter Server's root folder
cd /root/
Create an LDIF file using the vi editor
vi updatesamaccountname.ldif
Press the i key to go to insert mode in the vi editor.
Copy the below lines and paste them into the file.
Note: Please enter the correct hostname in the <vCenter_fqdn> field. If the local SSO domain is not vsphere.local, please modify the entries file to match the correct local SSO domain.
Press the escape key and type :wq! and hit enter to save and exit the vi editor.