Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-1516

JASPA: password encryption via the admin tool throws an exception

    XMLWordPrintable

    Details

    • Target Version/s:
    • Sprint:
      2018.6 Gardens of Babylon

      Description

      The process of generating an encrypted version of a password causes an exception to the thrown and displayed:

      $ ./agentadmin --acceptLicense --encrypt Agent_001 $HOME/passwd/J2EE-TOMCAT
      DebugImpl:03/07/2018 04:08:33:894 PM GMT: Thread[main,5,main]
      No enum constant com.sun.identity.shared.debug.DebugLevel.
      java.lang.IllegalArgumentException: No enum constant com.sun.identity.shared.debug.DebugLevel.
              at java.lang.Enum.valueOf(Enum.java:238)
              at com.sun.identity.shared.debug.DebugLevel.valueOf(DebugLevel.java:15)
              at com.sun.identity.shared.debug.DebugLevel.fromName(DebugLevel.java:65)
              at com.sun.identity.shared.debug.impl.DebugImpl.setDebug(DebugImpl.java:143)
              at com.sun.identity.shared.debug.impl.DebugImpl.<init>(DebugImpl.java:88)
              at com.sun.identity.shared.debug.impl.DebugProviderImpl.getInstance(DebugProviderImpl.java:76)
              at com.sun.identity.shared.debug.Debug.getInstance(Debug.java:204)
              at org.forgerock.openam.shared.security.crypto.AESWrapEncryption.<clinit>(AESWrapEncryption.java:55)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:264)
              at com.iplanet.services.util.Crypt.createInstance(Crypt.java:123)
              at com.iplanet.services.util.Crypt.initialize(Crypt.java:101)
              at com.iplanet.services.util.Crypt.<clinit>(Crypt.java:93)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.sun.identity.agents.install.handler.EncryptionHandler.handleRequest(EncryptionHandler.java:138)
              at com.sun.identity.install.tools.admin.AdminTool.dispatch(AdminTool.java:233)
              at com.sun.identity.install.tools.admin.AdminTool.run(AdminTool.java:136)
              at com.sun.identity.install.tools.launch.AdminToolLauncher.launchAdminTool(AdminToolLauncher.java:194)
              at com.sun.identity.install.tools.launch.AdminToolLauncher.main(AdminToolLauncher.java:324)
      
      The encrypted value is:
      AhAaX0jCQi4vLz4EXh6Ph0TeuxZeIGsc/N0Z7THlpQvN9g==
      

      This is apparently because it is trying to set the debugging level to com.sun.identity.shared.debug.DebugLevel, as opposed to using the value of the property.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tony.bamford Tony Bamford
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: