OID 10g OID 11g Ldapadd or ldapmodify fails 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 30, 2023
Applies to:
Oracle Internet Directory - Version 10.1.2 and laterInformation 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):
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 <PORT> -D cn=orcladmin -w <PASSWORD> -v -f sim_data_users_roles.ldif
add objectclass:
simUserRole
add cn:
USER_ROLE_1
add userRoleRoles:
roleName=ADMINISTRATOR,cn=Roles,cn=Accounts,dc=<COMPANY_NAME>,dc=com
roleName=MANAGER,cn=Roles,dc=Accounts,dc=oid,dc=com
add userRoleStores:
storeId=<STORE#_1>,cn=Stores,cn=Accounts,dc=<COMPANY_NAME>,dc=com
storeId=<STORE_#2>,cn=Stores,cn=Accounts,dc=<COMPANY_NAME>,dc=com
add userRoleUsers:
cn=<SUPER_USER>,cn=Users,cn=Accounts,dc=<COMPANY_NAME>,dc=com
adding new entry cn=USER_ROLE_1,cn=Roles,,cn=Accounts,dc=<COMPANY_NAME>,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! |
In this Document
Symptoms |
Changes |
Cause |
Solution |