使用 Apache Directory Studio,我想克隆一个 LDAP 服务器以进行测试。无法导入生成的 LDIF 文件,因为结构条目的顺序错误。结果,我得到了ERR_251_PARENT_NOT_FOUND
错误。
示例情况:
dn: ou=test2,ou=test1,o=ml3
objectClass: organizationalUnit
objectClass: top
ou: test2
dn: ou=test1,o=ml3
objectClass: organizationalUnit
objectClass: top
ou: test1
这将失败,因为ou=test2
它是ou=test1
. 所以ou=test1
必须先生成。为了确认这一点,我更改了一些条目的顺序,它们已成功导入。问题:我需要手动对所有条目执行此操作。
如何以正确的层次顺序导出 LDIF 以进行导出?