On 01/12/15 20:41 +0800, Eileen(=^ω^=) wrote:
[root@tmsr-ldap0 ldap]# ldapadd -x -D "cn=manager,dc=xxx,dc=xxx" -W -f test.ldif
See the manpage for slapadd(8), which is appropriate for restoring your DB. ldapadd is something else. If you want to store data in portable ldif format appropriate for use with ldapadd, use ldapsearch. -- Dan White