When executing the CLI utility /usr/lib/vmware-vmdir/bin/vdcadmintool to query the VMware Directory Service (vmdir) state, the command returns an error. Selecting option 6 from the utility menu results in the following failure:
GetVmDirState failed: VmDirGetState() failed. error(5)
VMware vCenter Server 8.x
The vdcadmintool utility requires elevated root-level permissions to successfully interact with internal directory service states, and executing this utility as an SSO user will result in this failure.
Execute the vdcadmintool utility using the root account via SSH.
/usr/lib/vmware-vmdir/bin/vdcadmintool