Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding new objectclass/attribute to existing ldap entry returns error

CharanBApr 27 2016 — edited Apr 27 2016

I have created 4 new attributes on cn=schema and also created a new objectclass with the 4 attributes set as MUST. I tried to add the objectclass to existing entry which obviously return an error because those 4 new attributes are not setup for the ldap entry. I created an ldif file and ran ldapmodify but get object violation error. Can anyone tellme whats causing this error and if I'm missing anything.

ldif

    #ldapmodify.bat -h localhost -p 1389 -D "cn=Directory Manager" -w xxxxx -a -f entry.ldif

    dn: uid=user.0,ou=People,dc=example,dc=com

    changetype: modify

    add: disabledFlag

    disabledFlag: n

    -

    add: passwordData

    passwordData:< file:/C:\\oud\\asinst_1\\OUD\\bat\\images.png

    -

    add: anonymousID

    anonymousID: nah

    -

    add: challengeResponse

    challengeResponse: nah

Error after executing the command.

    Processing MODIFY request for uid=user.0,ou=People,dc=example,dc=com

    MODIFY operation failed

    Result Code:  65 (Object Class Violation)

    Additional Information:  Entry uid=user.0,ou=People,dc=example,dc=com cannot not be modified because the resulting entry would have violated the server schema: Entry uid=user.0,ou=People,dc=example,dc=com violates the Directory Server schema configuration because it includes attribute anonymousID which is not allowed by any of the objectclasses defined in that entry

LDAP installed is OUD 11gR2.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2016
Added on Apr 27 2016
1 comment
1,168 views