diff options
-rw-r--r-- | ipalib/plugins/group.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index 9beef0039..55d8dfd3e 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -165,9 +165,10 @@ class group_del(LDAPDelete): def_primary_group_dn = group_dn = self.obj.get_dn(def_primary_group) if dn == def_primary_group_dn: raise errors.DefaultGroup() - (group_dn, group_attrs) = self.obj.methods.show( - self.obj.get_primary_key_from_dn(dn) - ) + group_attrs = self.obj.methods.show( + self.obj.get_primary_key_from_dn(dn), all=True + )['result'] + if 'mepmanagedby' in group_attrs: raise errors.ManagedGroupError() return dn |