glassfish
  1. glassfish
  2. GLASSFISH-15429

Modifying keyfile path in a newly created config does not properly list the users

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1_ms07
    • Fix Version/s: future release
    • Component/s: security
    • Labels:
      None

      Description

      1. asadmin copy-config default-config new-config
      2. asadmin get new-config.security-service.auth-realm.admin-realm.property.file
      new-config.security-service.auth-realm.admin-realm.property.file=$

      {com.sun.aas.instanceRoot}

      /config/admin-keyfile
      3. asadmin set new-config.security-service.auth-realm.admin-realm.property.file=/tmp/v3/admin-keyfile
      new-config.security-service.auth-realm.admin-realm.property.file=/tmp/v3/admin-keyfile
      Command set executed successfully.
      4. file /tmp/v3/admin-keyfile is not currently created.
      5. asadmin create-file-user --authrealmname admin-realm --target new-config test
      Enter the user password>
      Enter the user password again>
      Command create-file-user executed successfully.
      6. cat /tmp/v3/admin-keyfile
      test;

      {SSHA256}mjyhJFWxU8xUnGMY5bt+ngwj3tf6v6yOTKB7DgGKJUu6Neky/GVOsQ==;asadmin
      user1;{SSHA256}

      rImtlHJuqi6AMSypIUyBdcs2CUEPQq3pIEHSEsndYQmhBl4ZBT+fJA==;user1
      <user test is properly added to admin-keyfile under /tmp/v3 as expected.>
      8. asadmin list-file-users --authrealmname admin-realm new-config
      user1
      Command list-file-users executed successfully.
      <Expected is test,user1 but it lists user1 which it takes from $

      {instance_root}

      /domains/domain1/config/keyfile but it should list from /tmp/v3/admin-keyfile>

      The list-file-users needs to be fixed to list from /tmp/v3/admin-keyfile

        Issue Links

          Activity

            People

            • Assignee:
              kumarjayanti
              Reporter:
              srinik76
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: