Commit 22c7eabd authored by Guus der Kinderen's avatar Guus der Kinderen

Merge pull request #427 from surevine/scram-fixes-2

OF-631 Reduce salt size to fit database
parents de98467f 0dbd963e
......@@ -277,7 +277,7 @@ public class DefaultAuthProvider implements AuthProvider {
}
// Store the salt and salted password so SCRAM-SHA-1 SASL auth can be used later.
byte[] saltShaker = new byte[32];
byte[] saltShaker = new byte[24];
random.nextBytes(saltShaker);
String salt = DatatypeConverter.printBase64Binary(saltShaker);
......
......@@ -332,7 +332,7 @@ public class ScramSha1SaslServer implements SaslServer {
return salt;
} catch (UserNotFoundException | UnsupportedOperationException | ConnectionException | InternalUnauthenticatedException e) {
Log.warn("Exception in SCRAM.getSalt():", e);
byte[] salt = new byte[32];
byte[] salt = new byte[24];
random.nextBytes(salt);
return salt;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment