Add GnuTLS and secure LDAP information.
authorW. Trevor King <wking@drexel.edu>
Tue, 21 Jun 2011 12:26:01 +0000 (08:26 -0400)
committerW. Trevor King <wking@tremily.us>
Mon, 17 Dec 2012 11:41:05 +0000 (06:41 -0500)
mutt-ldap.py

index e27a5e32317f01544c0f8c5fdc8b6efca0db7828..8fac78ecd8eb3c463fb7744c61f9bebab35120a4 100755 (executable)
@@ -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'),