1.安装:

[root@ldap migration]# ldapadd -x -D "cn=Manager,dc=test,dc=com" -W -f test.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)