Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11279

It is necessary to specify how to generate a password when used Basic Authentication!

    XMLWordPrintableJSON

Details

    Description

      Follow the documentation ,"Usernames and passwords (as a sha256(password+salt) hash) could be added when the file is created.

      Actually, I do not know how to generate a password.
      Finding code as:

      public static String getSaltedHashedValue(String pwd)

      { final Random r = new SecureRandom(); byte[] salt = new byte[32]; r.nextBytes(salt); String saltBase64 = Base64.encodeBase64String(salt); String val = sha256(pwd, saltBase64) + " " + saltBase64; return val; }

      I think we shoud give an example to generate password in ref guide!

      Attachments

        1. SOLR-11279.patch
          2 kB
          chenmin

        Activity

          People

            Unassigned Unassigned
            chenmin chenmin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: