javax.naming.directory.SchemaViolationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Unable to create user from request
    via by user13133319,
  • LDAP Error code 65 - givenName
    via by user2089561,
  • LDAP and JNDI error,Help needed
    via by ravi bask,
  • apacheDS unable to create new entry
    via Stack Overflow by Dmitrii Bundin
    ,
  • Operational Attributes
    via by Leonardo Saavedra,
  • I insert in my LDAP a user with objectClass : objectClass ObjectClassPerson objectClass ObjectClassOrgani objectClass ObjectClassShadow objectClass ObjectClassTop objectClass ObjectClassOrg I am using the LDAP output step to insert all objects. But in trying to prove the transformation send me the following error: 2015/05/08 16:04:03 - INSERT USR LDAP.0 - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : Exception : 2015/05/08 16:04:03 - INSERT USR LDAP.0 - Error inserting for entry with DN = [uid=mark1,ou=users,dc=ldap,dc=test,dc=org]! 2015/05/08 16:04:03 - INSERT USR LDAP.0 - [LDAP: error code 65 - no structural object class provided] 2015/05/08 16:04:03 - INSERT USR LDAP.0 - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : org.pentaho.di.core.exception.KettleException: 2015/05/08 16:04:03 - INSERT USR LDAP.0 - Error inserting for entry with DN = [uid=mark1,ou=users,dc=ldap,dc=test,dc=org]! 2015/05/08 16:04:03 - INSERT USR LDAP.0 - [LDAP: error code 65 - no structural object class provided] 2015/05/08 16:04:03 - INSERT USR LDAP.0 - 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.steps.ldapinput.LDAPConnection.insert(LDAPConnection.java:354) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.steps.ldapoutput.LDAPOutput.processRow(LDAPOutput.java:251) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at java.lang.Thread.run(Thread.java:722) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - Caused by: javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - no structural object class provided]; remaining name 'uid=mark1,ou=users,dc=ldap,dc=test,dc=org' 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3118) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:811) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:337) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:266) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:254) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:197) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - at org.pentaho.di.trans.steps.ldapinput.LDAPConnection.insert(LDAPConnection.java:351) 2015/05/08 16:04:03 - INSERT USR LDAP.0 - ... 3 more I do not understand why I send this error if they are all objects and attributes needed. I hope you can help. Thank you.
    via by Elias Vargas Loyola,
    • javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - Failed to find employeetype in mandatory or optional attribute list.]; remaining name 'cn=pan b rat,cn=Users,dc=nrmasx,dc=com,dc=au' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3098) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
    No Bugmate found.