From dda0f311b2a6e67d2d0b007663e73bb96f0f61cf Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 4 Oct 2015 18:57:30 -0400 Subject: [PATCH] xmpp: Disable TLS on http-bind port (Closes: #239). --- actions/xmpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/xmpp b/actions/xmpp index b206d04c8..3a7a7a07b 100755 --- a/actions/xmpp +++ b/actions/xmpp @@ -104,7 +104,9 @@ def subcommand_setup(_): with open(EJABBERD_CONFIG, 'w') as conffile: for line in lines: - if 'auth_method: internal' in line: + if re.match(r'^\s*tls:\s+true', line): + conffile.write(' tls: false\n') + elif 'auth_method: internal' in line: conffile.write('## ' + line) elif '## auth_method: ldap' in line: conffile.write('auth_method: ldap\n')