LDAP中的自定义树

时间:2012-02-15 16:45:17

标签: ldap apacheds


我现在正在使用Apache Directory Server。我是LDAP的新生 经过几段阅读后,我注意到我需要自己的树来处理我想设计的特殊情况。知道,假设我有一些域名bubble.com。我想为它创建dc对象dc = buble,dc = com。当我尝试使用Apache Directory Studio时,我收到以下错误:

Error while creating entry
 - [LDAP: error code 32 - NO_SUCH_OBJECT: failed for     Add Request 
  javax.naming.NameNotFoundException: [LDAP: error code 32 - NO_SUCH_OBJECT: failed for         Add Request :
ClientEntry
    dn: dc=bubble+dc=com
    objectClass: dcObject
    objectClass: top
    dc: bubble
    dc: com
: ERR_268 Cannot find a partition for dc=bubble+dc=com]; remaining name 'dc=bubble+dc=com'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3112)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840)
    at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:811)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:337)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:266)
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$4.run(JNDIConnectionWrapper.java:658)
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1203)
    at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.createEntry(JNDIConnectionWrapper.java:704)
    at org.apache.directory.studio.ldapbrowser.core.jobs.CreateEntryRunnable.createEntry(CreateEntryRunnable.java:226)
    at org.apache.directory.studio.ldapbrowser.core.jobs.CreateEntryRunnable.run(CreateEntryRunnable.java:117)
    at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:113)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

  [LDAP: error code 32 - NO_SUCH_OBJECT: failed for     Add Request :
ClientEntry
    dn: dc=bubble+dc=com
    objectClass: dcObject
    objectClass: top
    dc: bubble
    dc: com
: ERR_268 Cannot find a partition for dc=bubble+dc=com]

说实话,我真的不明白发生了什么。分区的想法是什么?
是否有可能以这种方式创建自己的直流?或者我可能需要将所有内容放入ou = schema或ou = system?ou = schema和ou = system的目的是什么,默认情况下存在于ADS中?

3 个答案:

答案 0 :(得分:1)

dc=bubble+dc=com是具有多值相对可分辨名称且不存在父级的可分辨名称。 DIT必须由后端托管suffixnamingContext,然后您可以将该条目添加为suffixnamingContext的下属,例如{{1} }}

答案 1 :(得分:0)

您需要在远程服务器上重启apacheds服务,本教程详细解释:https://technology.amis.nl/2014/10/22/getting-started-with-apacheds-ldap-server-and-directory-studio/

答案 2 :(得分:-1)

使用后缀“dc = bubble,dc = com”创建数据分区。 http://directory.apache.org/apacheds/basic-ug/1.4.3-adding-partition.html