e3ffab
From 225b31ba835e5c082dc116a9ca9a5d94eaaaf102 Mon Sep 17 00:00:00 2001
e3ffab
From: Martin Kosek <mkosek@redhat.com>
e3ffab
Date: Fri, 30 Jan 2015 13:11:30 +0100
e3ffab
Subject: [PATCH] group-detach does not add correct objectclasses
e3ffab
e3ffab
https://fedorahosted.org/freeipa/ticket/4874
e3ffab
---
e3ffab
 ipalib/plugins/group.py | 1 +
e3ffab
 1 file changed, 1 insertion(+)
e3ffab
e3ffab
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py
e3ffab
index d25ed9a1958119a5872db85e958323fdb8205366..5d33ba217137f31e59a9e63cb69a442b138e156b 100644
e3ffab
--- a/ipalib/plugins/group.py
e3ffab
+++ b/ipalib/plugins/group.py
e3ffab
@@ -653,6 +653,7 @@ class group_detach(LDAPQuery):
e3ffab
         objectclasses = list(set(def_objectclass + objectclasses))
e3ffab
 
e3ffab
         group_attrs['mepManagedBy'] = None
e3ffab
+        group_attrs['objectclass'] = objectclasses
e3ffab
         ldap.update_entry(group_attrs)
e3ffab
 
e3ffab
         return dict(
e3ffab
-- 
e3ffab
1.9.3
e3ffab