Apache Directory Studio的Openldap命名上下文问题? [英] Openldap naming context issue with Apache directory studio?

查看:153
本文介绍了Apache Directory Studio的Openldap命名上下文问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Linux机器上安装了openldap,但是当我尝试通过Apache Directory Studio连接它时, Root DSE

I have installed openldap in linux machine, but when i am trying to connect it through Apache Directory studio ,I am getting no any child for Root DSE

有人可以告诉我我在做什么错吗?

Can someone please tell me what i am doing wrong here?

现在,如果我尝试导入任何正在获取的LDIF文件

Now if i am trying to import any LDIF file i am getting

导入LDIF时出错 -[LDAP:错误代码53-没有全局上级知识] java.lang.Exception:[LDAP:错误代码53-没有全局上级知识 知识] org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkResponse(DirectoryApiConnectionWrapper.java:1278) 在 org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access $ 9(DirectoryApiConnectionWrapper.java:1246) 在 org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper $ 6.run(DirectoryApiConnectionWrapper.java:926) 在 org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1173) 在 org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkConnectionAndRunAndMonitor(DirectoryApiConnectionWrapper.java:1107) 在 org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.createEntry(DirectoryApiConnectionWrapper.java:948) 在 org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdifRecord(ImportLdifRunnable.java:465)

Error while importing LDIF - [LDAP: error code 53 - no global superior knowledge] java.lang.Exception: [LDAP: error code 53 - no global superior knowledge] at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkResponse(DirectoryApiConnectionWrapper.java:1278) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access$9(DirectoryApiConnectionWrapper.java:1246) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$6.run(DirectoryApiConnectionWrapper.java:926) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1173) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkConnectionAndRunAndMonitor(DirectoryApiConnectionWrapper.java:1107) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.createEntry(DirectoryApiConnectionWrapper.java:948) at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifRunnable.importLdifRecord(ImportLdifRunnable.java:465)

推荐答案

您可能没有配置或创建后缀条目.您需要这样做,转到slapd.conf并检查是否已定义suffix,如:

You probably did not configure or create the suffix entry. You need to do that, go to the slapd.conf and check that you have defined suffix like:

suffix "dc=example,dc=com"

然后,您需要(重新)启动服务器,然后使用ldapadd将该条目添加到LDAP数据库中.因此,要实现该目标的LDIF文件将是( example.ldif ):

Then you need to (re)start your server, and add that entry to the LDAP database using ldapadd. So the LDIF file to accomplish that would be (example.ldif):

dn: dc=example,dc=com
objectclass: domain
objectclass: top
dc: example

将其添加到数据库的命令类似于:

And the command to add it to the database would be something like:

ldapadd -x -D "<rootdn>" -W -f example.ldif

当然,您的后缀可以是任何您喜欢的后缀(例如o = company,c = us),但是您需要相应地更改LDIF文件.

Of course, your suffix can be anything you like (e.g. o=company,c=us), but you need to change the LDIF file accordingly.

这篇关于Apache Directory Studio的Openldap命名上下文问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆