[sysadmin-bin] Switch export-mail to use account.gnome.org
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Switch export-mail to use account.gnome.org
- Date: Sat, 4 Oct 2014 16:22:24 +0000 (UTC)
commit 3dbc3bcbff96f15cf1b36a9e9c002d009f0610ee
Author: Andrea Veri <av gnome org>
Date: Sat Oct 4 18:18:56 2014 +0200
Switch export-mail to use account.gnome.org
mail/export-mail.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/mail/export-mail.py b/mail/export-mail.py
index 083f18c..eb4b8d2 100755
--- a/mail/export-mail.py
+++ b/mail/export-mail.py
@@ -5,10 +5,10 @@ import ldap.modlist
import ldap.filter
import subprocess
-LDAP_URL='ldap://ldap.gnome.org/'
+LDAP_URL='ldap://account.gnome.org/'
LDAP_BINDDN='cn=Manager,dc=gnome,dc=org'
-LDAP_GROUP_BASE='ou=groups,dc=gnome,dc=org'
-LDAP_USER_BASE='ou=people,dc=gnome,dc=org'
+LDAP_GROUP_BASE='cn=groups,cn=accounts,dc=gnome,dc=org'
+LDAP_USER_BASE='cn=people,cn=accounts,dc=gnome,dc=org'
ALIASES = [
('/etc/gnome.org/cvs-mail/virtual', 'cvs.gnome.org', ('gnomecvs', 'gnomevcs')),
@@ -18,7 +18,7 @@ ALIASES = [
]
_cache_email = {}
-def fetch_email_addresses(members):
+d ef fetch_email_addresses(members):
unknown_emails = members.difference(_cache_email.keys())
if len(unknown_emails):
@@ -36,7 +36,7 @@ def fetch_email_addresses(members):
return [(uid, _cache_email[uid]) for uid in sorted(members) if uid in _cache_email]
_cache_group = {}
-def fetch_group_members(group):
+de f fetch_group_members(group):
if group in _cache_group:
return _cache_group[group]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]