OID/DIP Sync Log Error: [LDAP: error code 65 - sn attribute not found. Mandatory Attribute missing.] (Doc ID 438209.1)

Last updated on APRIL 10, 2017

Applies to:

Oracle Internet Directory - Version 9.0.4 to 11.1.1 [Release 10gR1 to 11g]
Information in this document applies to any platform.

Symptoms

Synchronization of users from Active Directory to OID is failing

Profile trace shows the following errors.

OID 11g DIP log example:

[2016-01-13T16:22:54.337-06:00] [wls_ods1] [ERROR] [DIP-10007] [oracle.dip.AD_TO_OID] [tid: AD_TO_OID] [userId: <anonymous>] [ecid: 0000L8wXkCyBl305rzO5yY1M_eak000003,0] [APP: DIP#11.1.1.2.0] error in execution of Agent thread: AD_TO_OID[[
ODIException: Error Creating Entry in Directory
at oracle.ldap.odip.gsi.LDAPWriter.createEntry(LDAPWriter.java:1400)
at oracle.ldap.odip.gsi.LDAPWriter.insert(LDAPWriter.java:501)
at oracle.ldap.odip.gsi.LDAPWriter.modifyRadd(LDAPWriter.java:938)
at oracle.ldap.odip.gsi.LDAPWriter.performWriteChanges(LDAPWriter.java:422)
at oracle.ldap.odip.gsi.LDAPWriter.writeChanges(LDAPWriter.java:256)
at oracle.ldap.odip.web.DIPSyncWriterThread.run(DIPSyncWriterThread.java:71)
Caused by: javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - sn attribute not found. Mandatory Attribute missing.]; remaining name 'cn=user1,cn=users,dc=mycompany,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3118)
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 javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:202)
at oracle.ldap.odip.gsi.LDAPWriter.createEntry(LDAPWriter.java:1365)
... 5 more

OID 10g DIP log example:

Exception creating Entry : javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - sn attribute not found. Mandatory Attribute missing.]; remaining name 'cn=user1,ou=myou,ou=prod,ou=activedirusers,cn=users,dc=mycompany,dc=com'
[LDAP: error code 65 - sn attribute not found. Mandatory Attribute missing.]
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - sn attribute not found. Mandatory Attribute missing.]; remaining name 'cn=user1,ou=myou,ou=prod,ou=activedirusers,cn=users,dc=mycompany,dc=com
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms