Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7554

Secrets not retrieved from file cli arguments on windows

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1.0
    • Fix Version/s: 7.0.1, 7.1.0
    • Component/s: security, tools
    • Labels:
      None

      Description

      Found with new tests and 7.1.0-SNAPSHOT rev. 6e48c3ecd9a. It is possible to reproduce the issue with following framework cmd on windows:

      python3 run-pybot.py -v -s clu_group.secretsFile DJ
      

      In the suite there are failing all tests but the common issue is the same. An example of a cmd and error:

      E:\jenkins\workspace\OpenDJ-7.1.x\tests_daily\Configs\results\20201007-035609\clu_group\SecretsFile\DJSF\opendj\bat\ldapsearch.bat -h ig-win2012r2.internal.forgerock.com -p 1392 -D "cn=myself"  --useStartTls  -X  -b "dc=com" --bindPassword:file "E:\jenkins\workspace\OpenDJ-7.1.x\tests_daily\Configs\results\20201007-035609\clu_group\tmp\admin.secret" "(objectclass=*)"
      
      The LDAP bind request failed: 49 (Invalid Credentials)
      

      Same tests work just fine on linux machines. Also the mechanism with :env VARIABLE_NAME works on windows and linux machines.


      The file is created via python code, so should work same on linux and windows:

      with open(self.admin_secret_file, 'w') as sf:
          sf.write(self.DJSF.root_pwd)
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ondrej.fuchsik Ondrej Fuchsik
                Reporter:
                ondrej.fuchsik Ondrej Fuchsik
                Dev Assignee:
                Cedric Tran-Xuan
                QA Assignee:
                Ondrej Fuchsik
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: