Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-1130

Password from Keystore not used

    XMLWordPrintableJSON

Details

    • Important

    Description

      When password keystore (with a master password) is enabled and a password for a ldap connection should be stored this is ignored. Instead a dialog window asking for the password is shown every time.
      If password keystore is not enabled (so passwords will be stored in plain text) everything is fine.

      I tried to hunt down the bug and it should be in UIAuthHandler, following Patch helped for me:

      Index: UIAuthHandler.java
      — UIAuthHandler.java Base (BASE)
      +++ UIAuthHandler.java Locally Modified (Based On LOCAL)
      @@ -73,7 +73,7 @@
      String password = passwordsKeyStoreManager.getConnectionPassword( connectionParameter.getId() );

      // Checking if the bind password is available (the user chose to store the password)

      • if ( Strings.isEmpty( password ) ) //$NON-NLS-1$
        + if ( !Strings.isEmpty( password ) ) //$NON-NLS-1$
        {
        return new Credentials( connectionParameter.getBindPrincipal(),
        password, connectionParameter );

      Attachments

        1. apacheDS-storeBug
          0.9 kB
          Mathias Frohna

        Activity

          People

            Unassigned Unassigned
            MathiasF Mathias Frohna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: