无法在Apache DS Studio中使用用户定义的对象类

时间:2012-12-01 19:15:10

标签: ldap apacheds

我定义了一个对象类,并想在我的organizationalUnit中使用它。但是当我附上截图时,我无法在条目列表中看到我的对象类( aibu-staff )。

enter image description here

当我尝试将LDIF文件导入DIT时,收到如下错误:

Error while importing LDIF
 - [LDAP: error code 53 - UNWILLING_TO_PERFORM: failed for     Add Request 
  javax.naming.OperationNotSupportedException: [LDAP: error code 53 - UNWILLING_TO_PERFORM: failed for     Add Request :
ClientEntry
    dn: cn=aibu, ou=schema
    objectclass: metaSchema
    objectclass: top
    cn: aibu
    m-dependencies: system
    m-dependencies: cosine
    m-dependencies: nis
    m-dependencies: inetorgperson
    m-dependencies: core
: Unwilling to perform operation on enabled schema with disabled or missing dependencies: nis]; remaining name 'cn=aibu, ou=schema'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3160)
    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.ImportLdifJob.importLdifRecord(ImportLdifJob.java:457)
    at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdif(ImportLdifJob.java:267)
    at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.executeNotificationJob(ImportLdifJob.java:204)
    at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractNotificationJob.executeAsyncJob(AbstractNotificationJob.java:43)
    at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

  [LDAP: error code 53 - UNWILLING_TO_PERFORM: failed for     Add Request :
ClientEntry
    dn: cn=aibu, ou=schema
    objectclass: metaSchema
    objectclass: top
    cn: aibu
    m-dependencies: system
    m-dependencies: cosine
    m-dependencies: nis
    m-dependencies: inetorgperson
    m-dependencies: core
: Unwilling to perform operation on enabled schema with disabled or missing dependencies: nis]

2 个答案:

答案 0 :(得分:0)

Windows有poss-Superiors attribute,用于定义可以作为对象父级的对象类型。您可能需要添加组织单位。

答案 1 :(得分:0)

您需要先刷新架构对象,然后才能看到用户定义的对象。我总是能够毫无问题地做到这一点。 (以编程方式使用JNDI)。