[sysadmin-bin] We should be looking for member here as well



commit 9f3a1fc3514758f70c519432cb5ebf4c231fc7a9
Author: Andrea Veri <av gnome org>
Date:   Sun Oct 5 23:37:48 2014 +0200

    We should be looking for member here as well

 cleanup-inactive-ldap-accounts.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cleanup-inactive-ldap-accounts.py b/cleanup-inactive-ldap-accounts.py
index 59b7673..1b11945 100755
--- a/cleanup-inactive-ldap-accounts.py
+++ b/cleanup-inactive-ldap-accounts.py
@@ -66,7 +66,7 @@ except ldap.LDAPError, e:
 def _get_group_from_ldap(group):
 
     filter = ldap.filter.filter_format('(&(objectClass=posixGroup)(cn=%s))', (group, ))
-    results = l.search_s(LDAP_GROUP_BASE, ldap.SCOPE_SUBTREE, filter, ('memberUid', ))
+    results = l.search_s(LDAP_GROUP_BASE, ldap.SCOPE_SUBTREE, filter, ('member', ))
 
     members = set()
 


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