Note that there are some explanatory texts on larger screens.

plurals
  1. POOpenAM add user via rest api fails (missing required sn)
    primarykey
    data
    text
    <p>The default OpenAM schema requires the sn and cn attributes when using the /identity/create service. Even though I'm specifying them in the request, I get an error on the back end saying sn is missing... Has anyone else got the create identity endpoint to work?</p> <p>I'm using OpenDS for the backing ldap and version 9.5.4 for OpenAM. All the other endpoints (authenticate, logout, isValidToken, update) work just fine.</p> <p>Request:</p> <pre><code>http://openam:8080/openam/identity/create?admin={token}&amp;identity_type=user&amp;identity_name=jdoe&amp;identity_realm=/&amp;identity_attribute_names=userpassword&amp;identity_attribute_values_userpassword=changeme&amp;identity_attribute_names=givenname&amp;identity_attributes_values_givenname=tbd&amp;identity_attribute_names=sn&amp;identity_attributes_values_sn=tbd&amp;identity_attribute_names=cn&amp;identity_attributes_values_cn=tbd </code></pre> <p>Exception:</p> <pre><code>exception.name=com.sun.identity.idsvcs.GeneralFailure Plug-in com.sun.identity.idm.plugins.ldapv3.LDAPv3Repo encountered an ldap exception. LDAP Error 65: The requested operation will add or change data so that the data no longer complies with the schema. </code></pre> <p>OpenDS Error:</p> <pre><code>ADD RES conn=82 op=20 msgID=33882 result=65 message="Entry uid=jdoe,ou=people,dc=company,dc=com violates the Directory Server schema configuration because it is missing attribute sn which is required by objectclass person" etime=0 </code></pre> <hr> <p>Update:</p> <p>It look like by the time it gets to the LDAPv3Repo, the sn and cn attributes have been dropped:</p> <pre><code>LDAPv3Repo:07/02/2012 05:52:17:986 PM PDT: Thread[http-bio-8080-exec-2,5,main] exit addAttrMapping: attrMap = {mail=[], sn=[], cn=[], inetuserstatus=[Active], givenname=[], userpassword=xxx..., dn=[]} </code></pre> <p>There is nothing else in the debug log that looks like it helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload