...
This article explains, how to use Jxplorer, the ldifde command on Windows or the ldapsearch command in VCSA to export the vmdir information from vCenter Server as an LDIF file.
To export the information contained in VMDir in LDIF format, you can use one of the following methods: Collect the dump file using jxplorer Use the ldifde command Use the ldapsearch command Notes: If the vSphere domain was changed from the default vsphere.local, ensure to change the values for dc. For vSphere 5.5, use port 11711 instead of port 389. Collect the dump file using jxplorer Install JXplorer using JXplorer download page. Disclaimer: VMware is not responsible for the reliability of any data, opinions, advice, or statements made on third-party websites. Inclusion of such links does not imply that VMware endorses, recommends, or accepts any responsibility for the content of such sites. Open the JXplorer utility. Click on File > Connect and enter the following information: Host: FQDN_of_SSO_ServerProtocol: LDAP v3Base DN: dc=vsphere,dc=localSecurity Level: User + PasswordSecurity User DN: cn=administrator,cn=users,dc=vsphere,dc=localSecurity Password: administrator password for the identity or SSO server Note: The example above assumes that your SSO domain is called vsphere.local. If you are using a different domain name for the SSO domain, please ensure to alter the Base DN and the Security User DN accordingly. Select LDIF > Export Full Tree. Click OK and save as PSC_FQDN.ldif. (using the actual FQDN of the PSC as file name) Note: Java is required for JXplorer to function properly. Windows installed Single Sign-On or Platform Service Controller using ldifde Note: The ldifde command is only available on Windows if the server has the AD DS or Active Directory Lightweight Directory Services (AD LDS) server role installed. Open a command prompt on the vCenter Server host machine. Run this command to export the vmdir as an ldif dump file (instead of PSC_FQDN please use the actual FQDN of your platform service controller or vCenter Server): # ldifde -f c:\PSC_FQDN.ldif -s PSC_FQDN -t 389 -a "cn=Administrator,cn=Users,dc=vsphere,dc=local" * vCenter Server Appliance or Platform Service Controller using ldapsearch 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 this command to export the vmdir as an ldif dump file named after the FQDN of the PSC and the current date. Enter the password for the SSo administrator account when prompted: # /opt/likewise/bin/ldapsearch -b "dc=vsphere,dc=local" -s sub -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W > $(hostname)_"`date +"%d-%m-%Y"`".ldif
如何从 vSphere 5.5 和 6.0 导出 vmdir 信息