Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12782

Existing Server's Admin port pulling wrong value (and you can't edit it) when adding a new Server

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.1.0, 5.5.1, 6.0.0.5, 6.5.0.1
    • Fix Version/s: None
    • Component/s: configurator, install
    • Labels:
    • Environment:
      5.1.1 AM multiple server instance
    • Support Ticket IDs:

      Description

      Bug description

      When adding a server to an existing deployment with the wizard (Step 3: Configuration Data Store Settings), the Admin port (of the existing server) field isn't editable and it's default to 4444 (which overrides your actual admin port).

      So basically 2 issues here:

      • Admin Port field shouldn't be un-editable field in the wizard when adding a server to an existing Deployment.
      • Admin port's default 4444 overrides your actual admin port when querying the server (getServerInfo) after an AM restart. That affects the "add to Existing Deployment" wizard's page.

      How to reproduce the issue

        • install AM with Embedded Config Store and admin port 5444 (or any port different to 4444)
        • run the getServerInfo command:
          • curl --request POST --data "{}" "http://openam.example.com:18080/openam/getServerInfo.jsp?IDToken1=amadmin&IDToken2=cangetinam"dsisembedded=true&dsprotocol=ldap&dshost=localhost&dsport=50389&dsbasedn=dc%3Dopenam%2Cdc%3Dforgerock%2Cdc%3Dorg&dsreplport=51889&DS_EMB_REPL_ADMINPORT2=5444&dsreplportavailable=false&dsmgr=cn%3DDirectory+Manager&dspwd=AQIC5wM2LY4SfcyhfNFfjNaXQjZ4Cz9R5f8R&enckey=meO92sn8y7GvGJkbxhKDxKBNu4l98rAI&ENCLDAPUSERPASSWD=AQICsYhY8iQBP%2BG1izcWy%2FlZtybgujbBINXT&existingserverid=http%3A%2F%2Fopenam.example.com%3A18080%2Fopenam
          • Note 
            DS_EMB_REPL_ADMINPORT2=5444
        • restart AM
        • re-run the command:
          • curl --request POST --data "{}" "http://openam.example.com:18080/openam/getServerInfo.jsp?IDToken1=amadmin&IDToken2=cangetinam"dsisembedded=true&dsprotocol=ldap&dshost=localhost&dsport=50389&dsbasedn=dc%3Dopenam%2Cdc%3Dforgerock%2Cdc%3Dorg&dsreplport=51889&DS_EMB_REPL_ADMINPORT2=4444&dsreplportavailable=false&dsmgr=cn%3DDirectory+Manager&dspwd=AQIC5wM2LY4SfcyhfNFfjNaXQjZ4Cz9R5f8R&enckey=meO92sn8y7GvGJkbxhKDxKBNu4l98rAI&ENCLDAPUSERPASSWD=AQICsYhY8iQBP%2BG1izcWy%2FlZtybgujbBINXT&existingserverid=http%3A%2F%2Fopenam.example.com%3A18080%2Fopenam
          • Note 
            DS_EMB_REPL_ADMINPORT2=4444
        • Now on different Tomcat instance launch a 2nd AM server
        • Add to the existing deployment http://openam.example.com:18080/openam , while validating URL, admin port is locked at 4444 although it's installed on 5444.

      The validateExistingPort() function is implemented at https://stash.forgerock.org/projects/OPENAM/repos/openam-sustaining-external/browse/openam-server-only/src/main/webapp/config/wizard/step3.htm#229,617-618 

      The getServerInfo_jsp.java located in /path/to/tomcat/work/Catalina/localhost/openam/org/apache/jsp. (in stash /openam-server-only/src/main/webapp]/getServerInfo.jsp) looks like it has a default admin port as 4444 if the port can't be determined. With admin port field being un-editable, you can't proceed with a different port to 4444.

             adminPort = EmbeddedOpenDS.getAdminPort(dsmgr, JCECrypt.decode(dspwd),
                      "localhost", dsport);
              if (adminPort == null) {
                  adminPort = "4444";
              } 
      Expected behaviour
      We expect to be able to point the amdin port to our DJ intance manually or for this to pull this setting from the existing server. 
      Current behaviour
      The option is greyed out and set to the default of 4444 
      Workaround

      Use Firefox to edit the html and remove Disabled="" from that element and manually input the correct value.

      Or use configurator.jar 

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                william.hepler William Hepler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: