Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-11947

Not able to import AM configs with custom authentication module

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 14.0.0, 14.1.0, 14.1.1, 14.5.0, 6.0.0
    • Fix Version/s: None
    • Component/s: Amster
    • Labels:
    • Target Version/s:
    • Needs backport:
      Yes, No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      Yes, No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description, Yes but I used my own steps. (If so, please add them in a new comment)

      Description

      Getting issues both in exporting and importing configs having custom Authn module:

      • Export configs:
        1. Install AM 5.1.1 using normal installation process. 
        2. Installed custom authn module: https://github.com/CharanMann/OpenAM-LDAP-passwordResetFailure using ssoAdm tool
        3. Export configs using Amster:
          am> connect -i http://openam511.example.com:8484/openam
          Sign in
          User Name: amadmin
          Password: **********
          amster openam511.example.com:8484> export-config --path /home/forgerock/work/AM511configs
          Export completed successfully
      • Import configs:
        1. Install Tomcat (same hostname and port) and deploy 5.1.1 war, Start tomcat. 
        2. Copy custom authentication module jar, restart tomcat. 
        3. Install this new 5.1.1 instance using Amster: install-openam --serverUrl http://openam511.example.com:8484/openam --adminPwd cangetinam --policyAgentPwd camgetinag --acceptLicense --cfgDir /home/forgerock/openam5 --cfgStoreAdminPort 9444 --cfgStoreJmxPort 9689 --cfgStorePort 56389 --cookieDomain .example.com
        4. Import configs using Amster, error: 
          am> connect -i http://openam511.example.com:8484/openam
          Sign in
          User Name: amadmin
          Password: **********
          amster openam511.example.com:8484> import-config --path /home/forgerock/work/AM511configs
          Importing directory /home/forgerock/work/AM511configs
          Imported /home/forgerock/work/AM511configs/global/RadiusServer.json
          Imported /home/forgerock/work/AM511configs/global/AuthenticatorOath.json
          ...
          Imported /home/forgerock/work/AM511configs/realms/root-employees/Policies/OAuth2ProviderPolicy.json
          ---------------------------------------------------------------------
          IMPORT ERRORS
          ---------------------------------------------------------------------
          Failed to import /home/forgerock/work/AM511configs/global/ldapext.json : Unrecognised entity type: ldapext
          Failed to import /home/forgerock/work/AM511configs/realms/root-employees/ldapext/LDAPExtension.json : Unrecognised entity type: ldapext
          

       Not only the custom authentication module is not imported, it's not even registered in new AM deployment

        Attachments

          Activity

            People

            • Assignee:
              ken.stubbings Ken Stubbings
              Reporter:
              charan.mann Charan Mann
            • Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: