[sysadmin-bin] And do not forget to adjust all the other references as well



commit 25dd2934895d4972b7fd4329f67e7f5e69d3a184
Author: Andrea Veri <av gnome org>
Date:   Sat May 31 15:26:00 2014 +0200

    And do not forget to adjust all the other references as well

 cleanup-inactive-ldap-accounts.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/cleanup-inactive-ldap-accounts.py b/cleanup-inactive-ldap-accounts.py
index 37e8339..3ba52fe 100755
--- a/cleanup-inactive-ldap-accounts.py
+++ b/cleanup-inactive-ldap-accounts.py
@@ -98,7 +98,7 @@ def get_uids_from_group(group):
     return people
 
 gnomecvs_users = (get_uids_from_group('gnomecvs'))
-ftpbasic_users = (get_uids_from_group('ftpbasic'))
+ftpadmin_users = (get_uids_from_group('ftpadmin'))
 
 for gnomecvs_user in gnomecvs_users:
     if not user_is_current(gnomecvs_user):
@@ -107,9 +107,9 @@ for gnomecvs_user in gnomecvs_users:
         remove_members = [ (ldap.MOD_DELETE, 'memberUid','%s' % gnomecvs_user) ]
         l.modify_s('cn=gnomecvs,ou=groups,dc=gnome,dc=org', remove_members)
 
-for ftpbasic_user in ftpbasic_users:
-    if not user_is_current(ftpbasic_user):
+for ftpadmin_user in ftpadmin_users:
+    if not user_is_current(ftpadmin_user):
         if options.verbose:
-           print ("Removing user %s from ftpbasic" % ftpbasic_user, end='\n')
-        remove_members = [ (ldap.MOD_DELETE, 'memberUid','%s' % ftpbasic_user) ]
+           print ("Removing user %s from ftpadmin" % ftpadmin_user, end='\n')
+        remove_members = [ (ldap.MOD_DELETE, 'memberUid','%s' % ftpadmin_user) ]
         l.modify_s('cn=ftpadmin,ou=groups,dc=gnome,dc=org', remove_members)


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