OpenAM v.13.0.0 social authentication failure: suffix is not defined

This topic has 8 replies, 2 voices, and was last updated 6 years, 1 month ago by Bill Nelson.

  • Author
  • #13457


    I am using OpenDJ as external datastore and getting this error for authentication via social login. I have defined my DN as dc=example,dc=com. But I am getting error suffix is not defined. Where shall I make the changes to solve this problem. Here is the error message:

    amAuth:10/04/2016 11:29:49:913 AM IST: Thread[http-bio-8080-exec-13,5,main]: TransactionId[f42c314c-b1a0-43c0-ac35-c18c28ff9141-72]
    ERROR: DefaultAccountMapper.getAccount: IRE
    Message:Plug-in org.forgerock.openam.idrepo.ldap.DJLDAPv3Repo: Unable to find entry: The provided entry uid=facebook-11XXXXXXXXXXXX20,ou=people,dc=example,dc=com cannot be added because its suffix is not defined as one of the suffixes within the Directory Server



     Bill Nelson

    It “appears” that you have configured dynamic profile creation in OpenAM such that OpenAM will create an entry in OpenDJ after you have successfully logged in via social. That is fine, but OpenAM must be able to write to the path that you have configured for the profile configuration.

    What is your actual DIT structure in OpenDJ? Do you have a container of ou=people directly beneath the suffix of dc=example,dc=com? Can you export the o=people container entry out and post it here?

    What messages are contained in your OpenDJ access logs? If an attempt was made to write to OpenDJ (and failed), you will see error messages indicating why. Can you post those messages here?


    Hi Bill,

    Thanks for replying.

    As of now my database in OpenDJ is empty with base-dn=”dc=example,dc=com” and it doesn’t have any child nodes. When I was working on OpenAM 10, I didn’t get that error. Also, I don’t have much idea about how this works so can you please share any link where I can learn to add container beneath this.
    Here is the log of OpenDJ:

    [04/Oct/2016:18:36:09 +0530] SEARCH REQ conn=4 op=2589 msgID=2590 base=”ou=people,dc=example,dc=com” scope=sub filter=”(&(|(uid=facebook-11XXXXXXXXXXXX20))(&(uid=*)(objectclass=inetorgperson)))” attrs=”uid”
    [04/Oct/2016:18:36:09 +0530] SEARCH RES conn=4 op=2589 msgID=2590 result=32 message=”The entry ou=people,dc=hdfc,dc=com specified as the search base does not exist in the Directory Server” nentries=0 etime=0
    [04/Oct/2016:18:36:09 +0530] ADD REQ conn=4 op=2590 msgID=2591 dn=”uid=facebook-11XXXXXXXXXXXX20,ou=people,dc=example,dc=com”
    [04/Oct/2016:18:36:09 +0530] ADD RES conn=4 op=2590 msgID=2591 result=32 message=”The provided entry uid=facebook-11XXXXXXXXXXXX20,ou=people,dc=example,dc=com cannot be added because its suffix is not defined as one of the suffixes within the Directory Server” etime=0


     Bill Nelson

    Assuming that you have direct access to the server in which OpenDJ is installed, you can add OpenDJ entries using the ldapmodify command as follows:

    /path/to/opendj/bin/ldapmodify -h localhost -p 1389 -D "cn=Directory Manager" -w password --defaultAdd --continueOnError --filename ./entries.ldif 1> stdout.fil 2> rejects.fil

    Where the contents of the entries.ldif LDIF file would be:

    dn: ou=people,dc=example,dc=com
    objectClass: organizationalUnit
    objectClass: top
    ou: People

    Given the fact that you do not already have the ou=people container in place, I suspect that this is the issue you are facing. Create that container and then give it another shot. If it works, let us know. If not, then please post the new error messages in this window.


    • This reply was modified 6 years, 1 month ago by Bill Nelson.
     Bill Nelson

    @manasvi, did this work for you?


    @Bill the issue still persists. the suffix was created successfully, but still getting error suffix does not exists

     Bill Nelson

    Please provide the corresponding OpenDJ and OpenAM log entries that capture this behavior.


    @Bill now that thing is working fine. I re-installed OpenDJ (because I wrote few commands to create an ou which might have caused some issues).

    Thanks for your valuable time and your help.

     Bill Nelson

    Fantastic! Glad it is working for you.

    Good luck!

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?