From 3a1a4dd0ecdfbd19db81624455e22234ecfe9b19 Mon Sep 17 00:00:00 2001 From: William Brown Date: Mon, 8 May 2017 08:25:31 +1000 Subject: [PATCH] Ticket 28 - Change default objectClasses for users and groups Bug Description: Previously we had to use inetUser on users for memberOf, and no option existed for groups. Fix Description: With the addition of nsMemberOf we can support users and groups with this objectClass. As well, it allows us to remove inetUser because it's attributes are supplied by the other classes on the object. https://pagure.io/lib389/issue/28 Author: wibrown Review by: ??? --- lib389/idm/group.py | 1 + lib389/idm/user.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib389/idm/group.py b/lib389/idm/group.py index eabebfb..df123aa 100644 --- a/lib389/idm/group.py +++ b/lib389/idm/group.py @@ -22,6 +22,7 @@ class Group(DSLdapObject): self._create_objectclasses = [ 'top', 'groupOfNames', + 'nsMemberOf', ] self._protected = False diff --git a/lib389/idm/user.py b/lib389/idm/user.py index 40d3dfd..990cdaf 100644 --- a/lib389/idm/user.py +++ b/lib389/idm/user.py @@ -31,8 +31,7 @@ class UserAccount(DSLdapObject): 'account', 'posixaccount', 'inetOrgPerson', - 'person', - 'inetUser', + 'nsMemberOf', 'organizationalPerson', # This may not always work at sites? # Can we get this into core? -- 1.8.3.1