My Oracle Support Banner

OID 10g OID 11g Ldapadd or ldapmodify fals with ldap_add: additional info: Failed to find %attribute% in mandatory or optional attribute list | LDAP Error code 65 (Doc ID 1062643.1)

Last updated on FEBRUARY 27, 2018

Applies to:

Oracle Internet Directory - Version 10.1.2 and later
Information in this document applies to any platform.

Symptoms

Example 1

===============

When trying to setup LDAP IP-Hostname resolution per document:
     RFC2307 An Approach for Using LDAP as a Network Information Service

Sample LDIF (iphosts.ldif):

dn: cn=cpdv,cn=Hosts,dc=au,dc=oracle,dc=com
objectClass: top
objectClass: ipHost
objectClass: device
ipHostNumber: 192.168.16.123
cn: cpdv


Fails with error stack shown:

ldap_add: Object class violation
ldap_add: additional info: Failed to find iphostnumber in mandatory or optional attribute list.

(LDAP Error code 65)
Example 2
=====================

1- Custom objectclass created with the following ldif

dn: cn=subschemasubentry
changetype: modify
add: objectclasses
objectclasses: ( 1.3.6.1.4.1.11380.97.8
 NAME 'simUserRole' DESC 'SIM User Role' STRUCTURAL
 MUST ( cn $ userRoleRoles $ userRoleUsers)
 MAY ( userRoleStores $ startTimestamp $ endTimestamp ) )

2- Attempting to add an entry with the userRolesUsers attribute errors with
 ldapadd -p 3060 -D cn=orcladmin -w Welcome1 -v -f sim_data_users_roles.ldif
add objectclass:
simUserRole
add cn:
USER_ROLE_1
add userRoleRoles:
roleName=ADMINISTRATOR,cn=Roles,cn=Accounts,dc=oid,dc=com
roleName=MANAGER,cn=Roles,dc=Accounts,dc=oid,dc=com
add userRoleStores:
storeId=7010,cn=Stores,cn=Accounts,dc=oid,dc=com
storeId=7011,cn=Stores,cn=Accounts,dc=oid,dc=com
add userRoleUsers:
cn=superuser1,cn=Users,cn=Accounts,dc=oid,dc=com
adding new entry cn=USER_ROLE_1,cn=Roles,,cn=Accounts,dc=oid,dc=com
ldap_add: Object class violation
ldap_add: additional info: Failed to find userroleusers in mandatory or optional attribute list.




Changes

 

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!


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