glassfish
  1. glassfish
  2. GLASSFISH-19525

Enabling secure admin fails if admin realm is configured to use LDAP instead of the provided FileRealm

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2.2, 4.0
    • Fix Version/s: 4.0_b84_RC1
    • Component/s: admin
    • Labels:
      None

      Description

      Shawn reported this in the GlassFish forum.

      If the admin realm is configured, for instance, to use LDAP instead of the build-in FileRealm, then enabling secure admin fails with an exception similar to this:

      javax.enterprise.system.tools.admin.com.sun.enterprise.security.admin.cli|_ThreadID=17; _ThreadName=Thread-2;ClassName=org.glassfish.api.ActionReport;MethodName=failure;|Error enabling secure admin
      org.jvnet.hk2.config.TransactionFailure: java.lang.NullPointerException
        at com.sun.enterprise.security.admin.cli.EnableSecureAdminCommand.run(EnableSecureAdminCommand.java:151)
        at com.sun.enterprise.security.admin.cli.SecureAdminCommand.execute(SecureAdminCommand.java:891)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:117)
      ...several other higher classes that may not be meaningful...
        at java.lang.Thread.run(Unknown Source)
      

        Issue Links

          Activity

          Tim Quinn created issue -
          Tim Quinn made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 4.0_b72_EE7MS4 [ 16101 ]
          Resolution Fixed [ 1 ]
          Tim Quinn made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Tags 4_0-review
          Tom Mueller made changes -
          Tags 4_0-review 4_0-approved
          Tim Quinn made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Fix Version/s 4.0_b84_RC1 [ 16113 ]
          Fix Version/s 4.0_b72_EE7MS4 [ 16101 ]
          Resolution Fixed [ 1 ]
          Tim Quinn made changes -
          Link This issue is related to GLASSFISH-20182 [ GLASSFISH-20182 ]

            People

            • Assignee:
              Tim Quinn
              Reporter:
              Tim Quinn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: