.upper() SASL mechanism name

This commit is contained in:
jesopo 2019-09-02 10:29:20 +01:00
parent 9e43ea1599
commit 4ba99e57b7

View file

@ -16,7 +16,7 @@ USERPASS_MECHANISMS = [
class SaslSetting(utils.Setting): class SaslSetting(utils.Setting):
def parse(self, value: str) -> typing.Any: def parse(self, value: str) -> typing.Any:
mechanism, _, arguments = value.partition(" ") mechanism, _, arguments = value.partition(" ")
return {"mechanism": mechanism, "args": arguments} return {"mechanism": mechanism.upper(), "args": arguments}
@utils.export("serverset", SaslSetting("sasl", @utils.export("serverset", SaslSetting("sasl",
"Set the sasl username/password for this server", "Set the sasl username/password for this server",