From a68808294dd3d0dee698b5355c1a6e786f4f9475 Mon Sep 17 00:00:00 2001 From: Charles d'Hondt Date: Tue, 2 May 2017 10:35:56 +0200 Subject: [PATCH] lint checks --- mitmproxy/addons/proxyauth.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mitmproxy/addons/proxyauth.py b/mitmproxy/addons/proxyauth.py index 281a1a8fd..8e90dd088 100644 --- a/mitmproxy/addons/proxyauth.py +++ b/mitmproxy/addons/proxyauth.py @@ -107,10 +107,10 @@ class ProxyAuth: dn = ctx.options.proxyauth.split(":")[2] parts = dn.split("?") conn = ldap3.Connection( - self.ldapserver, - parts[0] + username + parts[1], - password, - auto_bind=True) + self.ldapserver, + parts[0] + username + parts[1], + password, + auto_bind=True) if conn: conn.search(parts[1][1:], '(' + parts[0] + username + ')', attributes=['objectclass']) if ctx.options.proxyauth.split(":")[3] in conn.entries[0]['objectclass']: