Blob Blame History Raw
From 225b31ba835e5c082dc116a9ca9a5d94eaaaf102 Mon Sep 17 00:00:00 2001
From: Martin Kosek <mkosek@redhat.com>
Date: Fri, 30 Jan 2015 13:11:30 +0100
Subject: [PATCH] group-detach does not add correct objectclasses

https://fedorahosted.org/freeipa/ticket/4874
---
 ipalib/plugins/group.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py
index d25ed9a1958119a5872db85e958323fdb8205366..5d33ba217137f31e59a9e63cb69a442b138e156b 100644
--- a/ipalib/plugins/group.py
+++ b/ipalib/plugins/group.py
@@ -653,6 +653,7 @@ class group_detach(LDAPQuery):
         objectclasses = list(set(def_objectclass + objectclasses))
 
         group_attrs['mepManagedBy'] = None
+        group_attrs['objectclass'] = objectclasses
         ldap.update_entry(group_attrs)
 
         return dict(
-- 
1.9.3