From 6b7d6417d403c983691c790c1e60cfe32bf1c420 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Thu, 18 Aug 2016 10:11:25 +0200 Subject: [PATCH] Fix: container owner should be able to add vault With recent change in DS (CVE fix), ds is not returging DuplicatedEntry error in case that user is not permitted by ACI to write, but ACIError instead. Is safe to ignore ACI error in container, because it will be raised again later if user has no access to container. https://fedorahosted.org/freeipa/ticket/6159 Reviewed-By: Martin Basti --- ipaserver/plugins/vault.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/plugins/vault.py b/ipaserver/plugins/vault.py index c9b7cb942..5c4c09685 100644 --- a/ipaserver/plugins/vault.py +++ b/ipaserver/plugins/vault.py @@ -783,7 +783,7 @@ class vault_add_internal(LDAPCreate): try: self.obj.create_container(parent_dn, owner_dn) - except errors.DuplicateEntry as e: + except (errors.DuplicateEntry, errors.ACIError): pass # vault should be owned by the creator