From 5484ae014ea991335d2fa2478d94169ad29c0f55 Mon Sep 17 00:00:00 2001 From: Martin Babinsky Date: Tue, 13 Oct 2015 12:31:13 +0200 Subject: [PATCH] remove ID overrides when deleting a user patch fixes a regression introduced during user-del refactoring https://fedorahosted.org/freeipa/ticket/5365 Reviewed-By: Tomas Babej --- ipalib/plugins/user.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index e7f128a33..848836cd1 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -688,6 +688,12 @@ class user_del(baseuser_del): else: self.api.Command.otptoken_del(token) + # Remove any ID overrides tied with this user + try: + remove_ipaobject_overrides(self.obj.backend, self.obj.api, dn) + except errors.NotFound: + self.obj.handle_not_found(*keys) + return dn def execute(self, *keys, **options):