glassfish
  1. glassfish
  2. GLASSFISH-17515

DAS server startup must detect and handle domain when admin password required is configured

    Details

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

      Description

      Issue GLASSFISH-17514 describes a change to start-domain where it requires the user to set an admin password at startup. We must also handle the case where the server is started by a mechanism other than start-domain.

      As described in 17514 the admin-keyfile may contain a special token for the admin password hash that indicates an admin password must be set before the domain can be started. The server should detect this at startup and fail with a message like:

      "The server requires a valid admin password be set before it can start. Please set a password using the change-admin-password command."

        Issue Links

          Activity

          Hide
          Tom Mueller added a comment -

          The behavior to be checked will be that there is at least one user in the admin realm that has a password set, i.e., the password hash is not "RESET". This will only be done if the admin realm is a FileRealm.

          Show
          Tom Mueller added a comment - The behavior to be checked will be that there is at least one user in the admin realm that has a password set, i.e., the password hash is not "RESET". This will only be done if the admin realm is a FileRealm.
          Hide
          Tom Mueller added a comment -

          Fixed on the 3.1.2 branch in revision 50758.

          Sending common/container-common/src/main/java/com/sun/enterprise/container/common/GenericAdminAuthenticator.java
          Sending common/container-common/src/main/java/com/sun/enterprise/container/common/LocalStrings.properties
          Sending core/kernel/src/main/java/com/sun/enterprise/v3/admin/AdminAdapter.java
          Sending core/kernel/src/main/java/com/sun/enterprise/v3/server/AppServerStartup.java
          Sending security/core/src/main/java/com/sun/enterprise/security/auth/realm/file/FileRealm.java

          Show
          Tom Mueller added a comment - Fixed on the 3.1.2 branch in revision 50758. Sending common/container-common/src/main/java/com/sun/enterprise/container/common/GenericAdminAuthenticator.java Sending common/container-common/src/main/java/com/sun/enterprise/container/common/LocalStrings.properties Sending core/kernel/src/main/java/com/sun/enterprise/v3/admin/AdminAdapter.java Sending core/kernel/src/main/java/com/sun/enterprise/v3/server/AppServerStartup.java Sending security/core/src/main/java/com/sun/enterprise/security/auth/realm/file/FileRealm.java
          Hide
          Tom Mueller added a comment -

          Fixed on the trunk in revision 50764.

          Sending nucleus/admin/util/src/main/java/com/sun/enterprise/admin/util/GenericAdminAuthenticator.java
          Sending nucleus/admin/util/src/main/java/com/sun/enterprise/admin/util/LocalStrings.properties
          Sending nucleus/cluster/gms-adapter/src/main/resources/org/glassfish/gms
          Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/admin/AdminAdapter.java
          Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/server
          Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/server/AppServerStartup.java
          Sending nucleus/security/core/src/main/java/com/sun/enterprise/security/auth/realm/file/FileRealm.java

          Show
          Tom Mueller added a comment - Fixed on the trunk in revision 50764. Sending nucleus/admin/util/src/main/java/com/sun/enterprise/admin/util/GenericAdminAuthenticator.java Sending nucleus/admin/util/src/main/java/com/sun/enterprise/admin/util/LocalStrings.properties Sending nucleus/cluster/gms-adapter/src/main/resources/org/glassfish/gms Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/admin/AdminAdapter.java Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/server Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/server/AppServerStartup.java Sending nucleus/security/core/src/main/java/com/sun/enterprise/security/auth/realm/file/FileRealm.java

            People

            • Assignee:
              Tom Mueller
              Reporter:
              Joe Di Pol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: