directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ringo De Smet <ringo.des...@gmail.com>
Subject [Studio] Adding objectClass results in: LDAP error code 20: modify/add: objectClass: value #0 already exists
Date Wed, 30 Sep 2009 09:57:48 GMT
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

Mime
View raw message