Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 7298:7056bbaf81ee
mod_saslauth: Disable DIGEST-MD5 by default (closes #515)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 18 Mar 2016 11:51:58 +0100 |
parent | 6519:367db22cf7d2 |
child | 7784:9f70d35a1602 |
comparison
equal
deleted
inserted
replaced
7294:5f4d0753c818 | 7298:7056bbaf81ee |
---|---|
17 local tostring = tostring; | 17 local tostring = tostring; |
18 | 18 |
19 local secure_auth_only = module:get_option_boolean("c2s_require_encryption", module:get_option_boolean("require_encryption", false)); | 19 local secure_auth_only = module:get_option_boolean("c2s_require_encryption", module:get_option_boolean("require_encryption", false)); |
20 local allow_unencrypted_plain_auth = module:get_option_boolean("allow_unencrypted_plain_auth", false) | 20 local allow_unencrypted_plain_auth = module:get_option_boolean("allow_unencrypted_plain_auth", false) |
21 local insecure_mechanisms = module:get_option_set("insecure_sasl_mechanisms", allow_unencrypted_plain_auth and {} or {"PLAIN", "LOGIN"}); | 21 local insecure_mechanisms = module:get_option_set("insecure_sasl_mechanisms", allow_unencrypted_plain_auth and {} or {"PLAIN", "LOGIN"}); |
22 local disabled_mechanisms = module:get_option_set("disable_sasl_mechanisms", {}); | 22 local disabled_mechanisms = module:get_option_set("disable_sasl_mechanisms", { "DIGEST-MD5" }); |
23 | 23 |
24 local log = module._log; | 24 local log = module._log; |
25 | 25 |
26 local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl'; | 26 local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl'; |
27 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind'; | 27 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind'; |