This article explains how to export the vmdir information from vCenter Server as an LDIF file using the ldapsearch command.
VMware vCenter Server 8.0.x
VMware vCenter Server 7.0.x
Notes:
If the vSphere domain was changed from the default vsphere.local, ensure to change the values for dc.
Log in to vCenter Server Appliance using SSH and root credentials.
Run this command to enable the Bash shell:
shell.set --enabled true
Type shell and press Enter.
Run the following command to export the vmdir as an ldif dump file named after the FQDN of the VCSA and the current date. Enter the password for the SSO administrator account when prompted:/opt/likewise/bin/ldapsearch -LLL -h localhost -p 389 -x -b "dc=vsphere,dc=local" -s sub -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W + '*'> $(hostname)_"`date +"%d-%m-%Y"`".ldif