Only panic about a scram failure if it's a server-final-message failure (sasl)
This commit is contained in:
parent
0e63700761
commit
09eb3d3314
1 changed files with 4 additions and 2 deletions
|
@ -83,8 +83,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
if verified:
|
if verified:
|
||||||
auth_text = "+"
|
auth_text = "+"
|
||||||
else:
|
else:
|
||||||
|
if current_scram.state == scram.SCRAMState.VerifyFailed:
|
||||||
event["server"].disconnect()
|
event["server"].disconnect()
|
||||||
raise ValueError("Server SCRAM verification failed")
|
raise ValueError("Server SCRAM verification failed")
|
||||||
|
self._end_sasl(event["server"])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise ValueError("unknown sasl mechanism '%s'" % mechanism)
|
raise ValueError("unknown sasl mechanism '%s'" % mechanism)
|
||||||
|
|
Loading…
Reference in a new issue