DBMS_LDAP.add_s Invalid Object Class
Hi,
My PL/SQL uses four object classes: top, person, orgnizationalPerson and inetOrgPerson. However, when adding a new user via DBMS_LDAP.add_s, got object class violation error below:
sqlcode: -31202, sqlerrm: ORA-31202:
DBMS_LDAP: LDAP client/server error: Object class violation.
Found a bug stating that an objClass of 20 char. length would cause the error, I created another object class orgPerson (created like organizationalPerson), no longer of 20 char. length. However, the same error messages persisted. Setting trace DBMS_LDAP.set_trace_level(65535) did not log or show any object class violation.
Question:
1) How do I identify which object class(es) is the culprit?
Since I am able to add user via ODM or command line, I don't see anything wrong with these object classes (top, person, orgPerson and inetOrgPerson).
2) How do I get around or fix the API problem? Anyone ever successfully added users via DBMS_LDAP.add_s on the Solaris platform?
Thanks,
Olivia