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 AUGUST 26, 2019

Applies to:

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


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=<COMPANY>,dc=com
objectClass: top
objectClass: ipHost
objectClass: device
ipHostNumber: <IP_ADDRESS>
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: (
 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 <PASSWORD> -v -f sim_data_users_roles.ldif
add objectclass:
add cn:
add userRoleRoles:
add userRoleStores:
add userRoleUsers:
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.


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

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