Hi,
this patch fixes permission-mod command returning duplicate memberships.

https://fedorahosted.org/freeipa/ticket/4175

Thanks
Adam
From a9b88eba0dd6e261cf294bbc330b798dc8831fb4 Mon Sep 17 00:00:00 2001
From: Misnyovszki Adam <amisn...@redhat.com>
Date: Tue, 18 Feb 2014 18:27:01 +0100
Subject: [PATCH] Permission MOD command fix

---
 ipalib/plugins/permission.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipalib/plugins/permission.py b/ipalib/plugins/permission.py
index 11819890af26ec8bb8a4b1a4cebdbb9b67453891..9754cac21bb42757aa2bfa02ba3ac564dc8e81e5 100644
--- a/ipalib/plugins/permission.py
+++ b/ipalib/plugins/permission.py
@@ -399,7 +399,7 @@ class permission_mod(LDAPUpdate):
         result = self.api.Command.permission_show(cn, **common_options)['result']
 
         for r in result:
-            if not r.startswith('member_'):
+            if not r.startswith('member_') and not r.startswith('memberindirect'):
                 entry_attrs[r] = result[r]
         return dn
 
-- 
1.8.5.3

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to