From 355bc8f68c37014900dbfc03735d1296bdc1c19a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 21 Jun 2011 08:26:01 -0400 Subject: [PATCH] Add GnuTLS and secure LDAP information. --- mutt-ldap.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mutt-ldap.py b/mutt-ldap.py index e27a5e3..8fac78e 100755 --- a/mutt-ldap.py +++ b/mutt-ldap.py @@ -55,11 +55,11 @@ def connect(): protocol = 'ldap' if CONFIG.getboolean('connection', 'ssl'): protocol = 'ldaps' - connection = ldap.initialize( - '%s://%s:%s' % ( - protocol, - CONFIG.get('connection', 'server'), - CONFIG.get('connection', 'port'))) + url = '%s://%s:%s' % ( + protocol, + CONFIG.get('connection', 'server'), + CONFIG.get('connection', 'port')) + connection = ldap.initialize(url) connection.bind( CONFIG.get('connection', 'user'), CONFIG.get('connection', 'password'), -- 2.26.2