mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix inconsistent error message when deleting groups that don't exist.
Ticket #292
This commit is contained in:
committed by
Rob Crittenden
parent
6606b2a9c5
commit
8a2ea9a7e0
@@ -165,7 +165,9 @@ 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) = ldap.get_entry(dn)
|
||||
(group_dn, group_attrs) = self.obj.methods.show(
|
||||
self.obj.get_primary_key_from_dn(dn)
|
||||
)
|
||||
if 'mepmanagedby' in group_attrs:
|
||||
raise errors.ManagedGroupError()
|
||||
return dn
|
||||
|
||||
Reference in New Issue
Block a user