From: W. Trevor King Date: Tue, 21 Jun 2011 12:26:01 +0000 (-0400) Subject: Add GnuTLS and secure LDAP information. X-Git-Tag: v0.1~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=355bc8f68c37014900dbfc03735d1296bdc1c19a;p=mutt-ldap.git Add GnuTLS and secure LDAP information. --- 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'),