glassfish
  1. glassfish
  2. GLASSFISH-14860

create-file-user should allow specifying target

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: 4.1
    • Component/s: security
    • Labels:
      None
    • Environment:

      all platform

      Description

      list-file-users , delete-file-user takes in target, but create-file-user doesn't.

      Usage: asadmin [asadmin-utility-options] create-file-user
      [--groups user_groups[:user_groups]*] [--authrealmname <authrealm_name>]
      [?|-help[=<help(default:false)>]] username

      Without being able to specify the target during creation, it seems this user is created for EVERY instance.
      here is what i see:

      %asadmin create-file-user --authrealmname file userABC

      Command create-file-user executed successfully.

      %asadmin list-file-users --authrealmname file server
      userABC
      Command list-file-users executed successfully.

      %asadmin list-file-users --authrealmname file instance-1
      userABC
      Command list-file-users executed successfully.

      Besides missing the target option, list and delete doesn't takes in config name as target.
      %asadmin list-file-users --authrealmname file sever-config
      org.glassfish.api.admin.CommandException: remote failure: Unable to find a valid target with name sever-config
      Command list-file-users failed.
      This doesn't sound right since any security realm is based on configuration, so it should take in config name as target as well.

      GUI issue (GLASSFISH-14797) and (GLASSFISH-14770) is depending on this bug fix. We want the following to happen:

      1. add 'target' as an option for create-file-user (blocks GLASSFISH-14770)
      2. config name should be a valid target. (blocks GLASSFISH-14797)

        Issue Links

          Activity

            People

            • Assignee:
              kumarjayanti
              Reporter:
              Anissa Lam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: