首页 文章

添加新条目时没有全局优势知识错误(更改后缀?)

提问于
浏览
1

Openldap 2.4.31安装在Ubuntu 14.04上 .

当我尝试将第一个条目添加到LDAP时,它说:
adding new entry "dc=abc,dc=com" ldap_add: Server is unwilling to perform (53) additional info: no global superior knowledge

这是我在CLI中使用的命令:
ldapadd -Y EXTERNAL -H ldapi:// -f import-org.ldif

从各种博客中我了解到这种情况的发生是因为带有dn dc=abc,dc=com 的新条目无法添加到带有后缀 dc=xyz,dc=com 的LDAP中 .

安装过程定义LDAP后缀,而不提示设置自定义后缀 . 我阅读了大量的手册和博客,但未能找到任何描述如何更改或添加新后缀的文档或任何其他方法来解决此版本的openldap中的问题 .

1 回答

  • 1

    You need to add the new Suffix.

    此示例假定dc = example,dc = com exisits并且您希望添加dc = example,dc = net

    您可以通过LDIF执行此操作,例如:

    # add example.net to an existing LDAP server
    version: 1
    
    dn: dc=example,dc=net
    dc: example
    description: Example Network Operations
    objectClass: dcObject
    objectClass: organization
    o: Example, Inc.
    
    dn: ou=people, dc=example,dc=net
    ou: people
    description: All people in organisation
    objectClass: organizationalUnit
    

    然后根据需要在新后缀下添加条目 .

相关问题