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

-- 
Martin Kosek <mko...@redhat.com>
Supervisor, Software Engineering - Identity Management Team
Red Hat Inc.
From f6dc4cdc78dcc95de445c5e9f1d8be3ccc13c889 Mon Sep 17 00:00:00 2001
From: Martin Kosek <mko...@redhat.com>
Date: Thu, 2 Oct 2014 10:31:42 +0200
Subject: [PATCH] Sudorule RunAsUser should work with external groups

https://fedorahosted.org/freeipa/ticket/4600
---
 ipalib/plugins/sudorule.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py
index f16d275b294634e3e2b7329ffe6f4f7804fd3cf2..1bd9042b9d2d7b10b5d61b298a0be8d39eeeeb32 100644
--- a/ipalib/plugins/sudorule.py
+++ b/ipalib/plugins/sudorule.py
@@ -792,8 +792,8 @@ def post_callback(self, ldap, completed, failed, dn, entry_attrs,
                                         failed=failed,
                                         completed=0,
                                         memberattr='ipasudorunas',
-                                        membertype='user',
-                                        externalattr='ipasudorunasextuser',
+                                        membertype='group',
+                                        externalattr='ipasudorunasextusergroup',
                                         )
 
         return (completed + completed_ex_users + completed_ex_groups, dn)
-- 
1.9.3

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

Reply via email to