【问题标题】:Two domain components of objectClass topobjectClass top 的两个域组件
【发布时间】:2017-03-17 03:31:54
【问题描述】:

LDAP 新手。从 Apache Studio 将 DIT 导出为 LDIF。尝试导入 LDIF 文件。发生错误:

...
#!ERROR [LDAP: error code 32 - Unable to add entry 'dc=example,dc=com' because its parent entry 'dc=com' does not exist in the server.]
dn: dc=example,dc=com
changetype: add
dc: example
objectClass: domain
objectClass: top

LDAP 服务器是 UnboundID LDAP SDK for Java 3.2.0。

我不知道足够多的 LDAP 来修复它。

Apache Studio 是否应该在此条目之前创建 dc=com

【问题讨论】:

  • 你想把它导入到哪里?你的服务器是什么?通常,您没有使用 dc=example,dc=com 定义的后缀或后端。
  • 我发现了两件事。 LDIF 文件实际上并未包含用于创建条目的“添加”操作,我认为这很奇怪。其次,如果我在文件顶部添加了“dc=com”,则会收到一个错误,即它的父级 null 不存在。但是,如果我通过其他方式创建“dc-com”,我不会收到错误。

标签: ldap unboundid-ldap-sdk


【解决方案1】:

LDIF 导出不保证排序。 LDIF 导入假定排序。

所以要回答您的问题,是的,您应该先创建 dc=com。

有一个微妙的例外,您可以将 dc=example.com 作为单个节点,这看起来很混乱。但句号在名称中是合法的。

【讨论】:

    猜你喜欢
    • 2021-12-17
    • 1970-01-01
    • 1970-01-01
    • 2022-09-23
    • 1970-01-01
    • 1970-01-01
    • 2015-12-07
    • 2018-05-22
    • 2020-11-27
    相关资源
    最近更新 更多