[sysadmin-bin] Do the same with export-mail, we should be converting it to use the gnome_ldap_utils class at some p



commit 4780bc4fd3bcdcb7dd5ffc24a7ad6c8151288f64
Author: Andrea Veri <averi redhat com>
Date:   Mon Oct 1 16:30:04 2018 +0200

    Do the same with export-mail, we should be converting it to use the gnome_ldap_utils class at some point

 mail/export-mail.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/mail/export-mail.py b/mail/export-mail.py
index 1b4b29b..dff229d 100755
--- a/mail/export-mail.py
+++ b/mail/export-mail.py
@@ -5,7 +5,7 @@ import ldap.modlist
 import ldap.filter
 import subprocess
 
-LDAP_URL='ldap://account.gnome.org/'
+LDAP_URL='ldaps://account.gnome.org:636/'
 LDAP_GROUP_BASE='cn=groups,cn=accounts,dc=gnome,dc=org'
 LDAP_USER_BASE='cn=users,cn=accounts,dc=gnome,dc=org'
 
@@ -66,8 +66,8 @@ def fetch_group_members(group):
 if __name__ == '__main__':
     global l
     try:
-        l = ldap.open('account.gnome.org')
-        l.simple_bind("cn=Directory Manager", ldap_password)
+        l = ldap.initialize(LDAP_URL)
+        l.simple_bind_s("cn=Directory Manager", ldap_password)
     except ldap.LDAPError, e:
         print >>sys.stderr, e
         sys.exit(1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]