Commit ab63a9fc authored by fedor.brunner's avatar fedor.brunner
Browse files

Disable SCRAM-SHA-1-PLUS if channel binding is not supported.

Fixes #20
parent 14da175d
......@@ -188,8 +188,10 @@ class SASL(PlugIn):
# Password based authentication mechanism ordered by strength.
# If the server supports a mechanism disable all weaker mechanisms.
password_auth_mechs_strength = ('SCRAM-SHA-1-PLUS', 'SCRAM-SHA-1',
password_auth_mechs_strength = ['SCRAM-SHA-1-PLUS', 'SCRAM-SHA-1',
if self.channel_binding == None:
for i in range(0, len(password_auth_mechs_strength)):
if password_auth_mechs_strength[i] in self.mecs:
for m in password_auth_mechs_strength[i + 1:]:
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