LDAP中的自定义树

LDAP中的自定义树,ldap,apacheds,Ldap,Apacheds,我现在正在使用Apache目录服务器。我是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


我现在正在使用Apache目录服务器。我是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]

老实说,我真的不明白发生了什么。分区的概念是什么?
可以用这种方式创建自己的dc吗?或者我必须将所有内容放入ou=schema或ou=system吗?
默认情况下出现在ADS中的ou=schema和ou=system的用途是什么?

dc=bubble+dc=com
是一个具有多值相对可分辨名称的可分辨名称,没有父项。DIT必须有一个由后端托管的
后缀
namingContext
,然后您可以将条目作为该
后缀
namingContext
的从属项添加,例如,
dc=bubble+dc=com,o=my后缀
您需要在远程服务器上重新启动apacheds服务,本教程详细介绍:

使用后缀“dc=bubble,dc=com”创建数据分区。

什么是DIT、后缀和命名上下文?ApacheDirectory服务器的文档真的很糟糕,我做任何事情都是盲目的。DIT=目录信息树。后缀和命名上下文是后端支持的顶级名称的两个名称,例如,在可分辨名称中,
ou=people,o=example
o=example
是命名上下文或后缀。这必须存在,才能添加下属。@Terry我也有同样的问题。你所说的后端是什么意思?你指的是web上下文吗?有些服务器(但不是全部)将承载“namingContext”的数据库称为“后端”。服务器管理员将在目录服务器配置中创建“后端”,以承载“namingContext”。实际上,“后端”将支持后缀数据,例如“dc=example,dc=com”。“后端”是LDAP服务器特有的东西,与“web上下文”没有直接关系。我正在使用ApacheDirectoryStudio,我成功地连接到ApacheDS。我想创建一个域组件abc.com。在“根DSE”图标处。要创建dc=abc,dc=com。我犯了那个错误?像我这样的LDAP新手如何才能创建dc=abc,dc=com?能否从链接中添加一些内容?如果使用apacheds studio添加分区,则需要重新启动apacheds服务,请解释你的解决方案当你回答一个问题时,强烈建议你试着解释为什么这个解决方案会起作用。