My Oracle Support Banner

OUD Fails With ERROR: OBJECTCLASS_VIOLATION LDAP ERROR_65 Trying to Create and Modify Users (Doc ID 2362051.1)

Last updated on MARCH 22, 2018

Applies to:

Oracle Unified Directory - Version 11.1.2.2.3 and later
Information in this document applies to any platform.

Symptoms

 OUD Server 11.1.2.2.3.

There is required to sync users from one OUD environment to another OUD environment.

Users exported in LDIF format and imported in the target OUD server.

After import operation ldap operations as adding and modifications are not working fine and next message error is reported:

ERROR: OBJECTCLASS_VIOLATION LDAP ERROR_65

 

Changes

 Trying to fix the issue next steps were performed:

 

Next sample was provided to delete all entries and suffix. In the delete operation (step 2) is where it took more then 24 hours to finish. Provided just like a sample:

  1. Getting suffix information using ldapsearch

     

    [oracle@OAM11gr2ps2 bin]$ ./ldapsearch -T -h localhost -p 2389 -D "cn=Directory manager" -w welcome1 -b ou=people,dc=example,dc=com -s base objectclass=*

    dn: ou=People,dc=example,dc=com

    ou: People

    objectClass: organizationalunit

    objectClass: top

     

  2. Deleting all the entries including suffix

     

    ./ldapdelete -h localhost -p 2389 -D "cn=Directory Manager" -w welcome1 -x ou=People,dc=example,dc=com

     

    [oracle@OAM11gr2ps2 bin]$ ./ldapdelete -h localhost -p 2389 -D "cn=Directory Manager" -w welcome1 -x ou=People,dc=example,dc=com

    Processing DELETE request for ou=People,dc=example,dc=com

    DELETE operation successful for DN ou=People,dc=example,dc=com

     

  3. Validating deletion was successful

     

    [oracle@OAM11gr2ps2 bin]$ ./ldapsearch -T -h localhost -p 2389 -D "cn=Directory manager" -w welcome1 -b ou=people,dc=example,dc=com -s base objectclass=*

    SEARCH operation failed

    Result Code: 32 (No Such Entry)

    Additional Information: The search base entry 'ou=people,dc=example,dc=com' does not exist

    Matched DN: dc=example,dc=com

     

  4. Adding the suffix back using ldapmodify

     

    [oracle@OAM11gr2ps2 bin]$ ./ldapmodify -h localhost -p 2389 -D "cn=Directory Manager" -w welcome1

    dn: ou=People,dc=example,dc=com

    changetype: add

    ou: People

    objectClass: organizationalunit

    objectClass: top

     

    Processing ADD request for ou=People,dc=example,dc=com

    ADD operation successful for DN ou=People,dc=example,dc=com

     

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.