mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-12 16:32:01 -05:00
Fix inconsistent error message when deleting groups that don't exist.
Ticket #292
This commit is contained in:
1 parent
6606b2a9c5
commit
8a2ea9a7e0
1 file changed
+3
-1
@@ -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