summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/group.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-10-08 22:44:48 -0400
committerEndi Sukma Dewata <edewata@redhat.com>2010-10-13 17:58:15 -0400
commit19272e5b8ef47be91988d2f316391568306e6919 (patch)
tree6f944a5138b8e40d8ea251ab6b96b9b3ccd5b358 /ipalib/plugins/group.py
parent81c3898da40b5618c7bf940a2b5d3731cdd66627 (diff)
downloadfreeipa-19272e5b8ef47be91988d2f316391568306e6919.tar.gz
freeipa-19272e5b8ef47be91988d2f316391568306e6919.tar.xz
freeipa-19272e5b8ef47be91988d2f316391568306e6919.zip
Fix group deletion
ticket 347
Diffstat (limited to 'ipalib/plugins/group.py')
-rw-r--r--ipalib/plugins/group.py7
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