[sysadmin-bin] Restrict to groupofnames to avoid getting compat entries in



commit 6e0222c119d3abcc5730ede29dad5ce389b5da73
Author: Andrea Veri <averi redhat com>
Date:   Mon Oct 1 16:17:58 2018 +0200

    Restrict to groupofnames to avoid getting compat entries in

 gnome_ldap_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome_ldap_utils.py b/gnome_ldap_utils.py
index f00af83..66ee5ca 100755
--- a/gnome_ldap_utils.py
+++ b/gnome_ldap_utils.py
@@ -22,7 +22,7 @@ class Gnome_ldap_utils:
     def get_group_from_ldap(self, group):
         import ldap.filter
 
-        filter = ldap.filter.filter_format('(&(objectClass=posixGroup)(cn=%s))', (group, ))
+        filter = ldap.filter.filter_format('(&(objectClass=groupofnames)(cn=%s))', (group, ))
         results = self.conn.search_s(self.LDAP_GROUP_BASE, ldap.SCOPE_SUBTREE, filter, ('member', ))
 
         members = set()


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