SSSD does not support sudo rules for local users;
these should be added in a local sudoers file.

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

--
PetrĀ³
From ec76f6ff2d9edad9132a029f3643c7d5cc9cafa8 Mon Sep 17 00:00:00 2001
From: Petr Viktorin <pvikt...@redhat.com>
Date: Fri, 3 Oct 2014 10:55:48 +0200
Subject: [PATCH] sudo integration test: Remove the local user test

SSSD does not support sudo rules for local users;
these should be added in a local sudoers file.

https://fedorahosted.org/freeipa/ticket/4608
---
 ipatests/test_integration/test_sudo.py | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/ipatests/test_integration/test_sudo.py b/ipatests/test_integration/test_sudo.py
index 2c4116c4d79e885e438883751c39f93441f8be71..f26a1003208195f955521eca24d6cd3acc433fd6 100644
--- a/ipatests/test_integration/test_sudo.py
+++ b/ipatests/test_integration/test_sudo.py
@@ -199,29 +199,6 @@ def test_sudo_rule_restricted_to_one_group_teardown(self):
                                  'testrule',
                                  '--groups', 'testgroup2'])
 
-    def test_sudo_rule_restricted_to_one_local_user_setup(self):
-        # Add the localuser to the rule
-        self.master.run_command(['ipa', 'sudorule-add-user',
-                                 'testrule',
-                                 '--users', 'localuser'])
-
-    def test_sudo_rule_restricted_to_one_local_user(self):
-        result1 = self.list_sudo_commands("localuser")
-        assert "(ALL : ALL) NOPASSWD: ALL" in result1.stdout_text
-
-        result2 = self.list_sudo_commands("testuser1", raiseonerr=False)
-        assert result2.returncode != 0
-
-    def test_setting_category_to_all_with_valid_entries_user_local(self):
-        result = self.reset_rule_categories(safe_delete=False)
-        assert result.returncode != 0
-
-    def test_sudo_rule_restricted_to_one_local_user_teardown(self):
-        # Remove the testuser1 from the rule
-        self.master.run_command(['ipa', 'sudorule-remove-user',
-                                 'testrule',
-                                 '--users', 'localuser'])
-
     def test_sudo_rule_restricted_to_one_host_negative_setup(self):
         # Reset testrule configuration
         self.reset_rule_categories()
-- 
1.9.3

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

Reply via email to