glassfish
  1. glassfish
  2. GLASSFISH-18004

The user was not asked to enter AS_ADMIN_WINDOWSPASSWORD

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 3.1.2_b14
    • Fix Version/s: None
    • Component/s: distributed management
    • Labels:
      None

      Description

      GF 3.1.2 build 14, Win 2008 machine. Executed the follow command:
      =================================================================
      asadmin create-node-dcom --nodehost localhost qq
      remote failure: Missing Windows password. If you are using asadmin, specify the
      remote Windows password in a file as follows:
      AS_ADMIN_WINDOWSPASSWORD=windows-password
      Specify the path of the password file to asadmin with the --passwordfile (or -W)
      option.
      Command create-node-dcom failed.
      ==========================================================

      Before in this case, the AS_ADMIN_WINDOWSPASSWORD was asked two times. Now it was not asked at all. I believe that, as for any other GF existent passwords, the AS_ADMIN_WINDOWSPASSWORD has to be asked one time, if it was not provided in the passwordfile.

        Activity

        Hide
        Byron Nevins added a comment -

        Note that this command runs in the server, not in the client.

        Before – the client saw that there is no passwordfile and used the built-in support in Asadmin to get a password. But that support is hard-coded to ask for a password twice. It is currently impossible to force it to ask only once.

        A good solution, which we can't do for 3.1.2, is to create a new attribute for Parameters – something that would tell it to ask for the password ONCE not TWICE.

        The choices were to either ask twice for the password or to require a password file.
        Nazrul made the call to do the latter - which is what it does now.

        If you try the analogous ssh commands they behave exactly the same way (if you are using password authentication)

        Elena – You should consider filing an issue against CLI for the prompt-once-for-password capability.

        Show
        Byron Nevins added a comment - Note that this command runs in the server, not in the client. Before – the client saw that there is no passwordfile and used the built-in support in Asadmin to get a password. But that support is hard-coded to ask for a password twice. It is currently impossible to force it to ask only once. A good solution, which we can't do for 3.1.2, is to create a new attribute for Parameters – something that would tell it to ask for the password ONCE not TWICE. The choices were to either ask twice for the password or to require a password file. Nazrul made the call to do the latter - which is what it does now. If you try the analogous ssh commands they behave exactly the same way (if you are using password authentication) Elena – You should consider filing an issue against CLI for the prompt-once-for-password capability.

          People

          • Assignee:
            Byron Nevins
            Reporter:
            easarina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: