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.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

          Anissa Lam created issue -
          Anissa Lam made changes -
          Field Original Value New Value
          Link This issue blocks GLASSFISH-14797 [ GLASSFISH-14797 ]
          Jason Lee made changes -
          Link This issue blocks GLASSFISH-14770 [ GLASSFISH-14770 ]
          Anissa Lam made changes -
          Summary create-file-user should allows specifying target create-file-user should allow specifying target
          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) is depending on this bug fix. We want the following to happen:

          1. add 'target' as an option for create-file-user
          2. config name should be a valid target.




          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)




          kumarjayanti made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Anissa Lam made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Anissa Lam made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          kumarjayanti made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Cannot Reproduce [ 5 ]
          Anissa Lam made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          kumarjayanti made changes -
          Priority Critical [ 2 ] Minor [ 4 ]
          Anissa Lam made changes -
          Assignee kumarjayanti [ kumarjayanti ] Tom Mueller [ tmueller ]
          Tom Mueller made changes -
          Assignee Tom Mueller [ tmueller ] kumarjayanti [ kumarjayanti ]
          Tom Mueller made changes -
          Tags 3-1-regression
          kumarjayanti made changes -
          Fix Version/s 3.2 [ 10969 ]
          Jill Sato made changes -
          Fix Version/s 4.0 [ 10970 ]
          Fix Version/s 3.2 [ 10969 ]
          JeffTancill made changes -
          Fix Version/s 4.0.1 [ 16061 ]
          Fix Version/s 4.0 [ 10970 ]
          Romain Grécourt made changes -
          Fix Version/s 4.1 [ 16387 ]
          Fix Version/s 4.0.1 [ 16061 ]
          Romain Grécourt made changes -
          Fix Version/s 4.1.1 [ 17211 ]
          Fix Version/s 4.1 [ 16387 ]

            People

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

              Dates

              • Created:
                Updated: