class Groups(Object):
+ hidden_groups = (
+ "cn=LDAP Read Only,ou=Group,dc=ipfire,dc=org",
+ "cn=LDAP Read Write,ou=Group,dc=ipfire,dc=org",
+ )
+
@property
def search_base(self):
return "ou=Group,%s" % self.backend.accounts.search_base
groups = []
for dn, attrs in res:
+ # Skip any hidden groups
+ if dn in self.hidden_groups:
+ continue
+
g = Group(self.backend, dn, attrs)
groups.append(g)