You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Ringo De Smet <ri...@gmail.com> on 2009/09/30 11:57:48 UTC
[Studio] Adding objectClass results in: LDAP error code 20:
modify/add: objectClass: value #0 already exists
Hello,
I followed the docs at (1) to add an objectClass to an existing entry.
With ldapscripts (2) I created some user entries, but they only
contained the top and posixAccount objectClasses. I now tried manually
adding inetOrgPerson, filled in the required sn attribute, but when
pushing Finish, I got this:
Error while executing LDIF
- [LDAP: error code 20 - modify/add: objectClass: value #0 already exists]
javax.naming.directory.AttributeInUseException: [LDAP: error code 20
- modify/add: objectClass: value #0 already exists]; remaining name
'uid=fdeschri,ou=Users,dc=b-virtual,dc=org'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(Unknown
Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Unknown
Source)
at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$2.run(JNDIConnectionWrapper.java:494)
at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1116)
at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1047)
at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.modifyEntry(JNDIConnectionWrapper.java:534)
at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdifRecord(ImportLdifJob.java:507)
at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdif(ImportLdifJob.java:268)
at org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.run(ExecuteLdifRunnable.java:143)
at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:114)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
[LDAP: error code 20 - modify/add: objectClass: value #0 already exists]
This is Studio 1.4 against OpenLDAP 2.4.11 (Ubuntu 8.10 Intrepid)
(1) http://directory.apache.org/studio/static/users_guide/ldap_browser/tools_editentry_wizard.html
(2) http://ldapscripts.sourceforge.net
Any idea?
Ringo
Re: [Studio] Adding objectClass results in: LDAP error code 20:
modify/add: objectClass: value #0 already exists
Posted by Ringo De Smet <ri...@gmail.com>.
Stefan,
2009/10/1 Stefan Seelmann <se...@apache.org>:
>
> 2nd)
> inetOrgPerson is a structural object class, so adding it to an existing
> entry (which already has a structural object class) fails.
pebkac! This was the culprit, with the result that I learned
something: objectClass kinds (structural <-> auxiliary)!
Tnx,
Ringo
Re: [Studio] Adding objectClass results in: LDAP error code 20:
modify/add: objectClass: value #0 already exists
Posted by Stefan Seelmann <se...@apache.org>.
Hi Ringo,
1st)
Could you check the "Modification Logs" please? It should contain the
changes sent to the directory server.
2nd)
inetOrgPerson is a structural object class, so adding it to an existing
entry (which already has a structural object class) fails.
Kind Regards,
Stefan
Ringo De Smet schrieb:
> Hello,
>
> I followed the docs at (1) to add an objectClass to an existing entry.
> With ldapscripts (2) I created some user entries, but they only
> contained the top and posixAccount objectClasses. I now tried manually
> adding inetOrgPerson, filled in the required sn attribute, but when
> pushing Finish, I got this:
>
> Error while executing LDIF
> - [LDAP: error code 20 - modify/add: objectClass: value #0 already exists]
> javax.naming.directory.AttributeInUseException: [LDAP: error code 20
> - modify/add: objectClass: value #0 already exists]; remaining name
> 'uid=fdeschri,ou=Users,dc=b-virtual,dc=org'
> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
> at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(Unknown Source)
> at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(Unknown
> Source)
> at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Unknown
> Source)
> at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$2.run(JNDIConnectionWrapper.java:494)
> at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1116)
> at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1047)
> at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.modifyEntry(JNDIConnectionWrapper.java:534)
> at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdifRecord(ImportLdifJob.java:507)
> at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdif(ImportLdifJob.java:268)
> at org.apache.directory.studio.ldapbrowser.core.jobs.ExecuteLdifRunnable.run(ExecuteLdifRunnable.java:143)
> at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:114)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
> [LDAP: error code 20 - modify/add: objectClass: value #0 already exists]
>
> This is Studio 1.4 against OpenLDAP 2.4.11 (Ubuntu 8.10 Intrepid)
>
> (1) http://directory.apache.org/studio/static/users_guide/ldap_browser/tools_editentry_wizard.html
> (2) http://ldapscripts.sourceforge.net
>
> Any idea?
>
> Ringo