URL: https://github.com/SSSD/sssd/pull/5814
Author: aborah-sudo
 Title: #5814: Tests: sss_override does not take precedence over 
override_homedir di…
Action: opened

PR body:
"""
…rective

bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1919942
"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5814/head:pr5814
git checkout pr5814
From b0e4e4c220f3352289fb471f1a942740721f20e2 Mon Sep 17 00:00:00 2001
From: Anuj Borah <abo...@redhat.com>
Date: Wed, 6 Oct 2021 17:59:51 +0530
Subject: [PATCH] Tests: sss_override does not take precedence over
 override_homedir directive

bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1919942
---
 .../alltests/test_ldap_extra_attrs.py         | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/src/tests/multihost/alltests/test_ldap_extra_attrs.py b/src/tests/multihost/alltests/test_ldap_extra_attrs.py
index a493fb558b..30499df879 100644
--- a/src/tests/multihost/alltests/test_ldap_extra_attrs.py
+++ b/src/tests/multihost/alltests/test_ldap_extra_attrs.py
@@ -193,3 +193,29 @@ def test_0006_bz1667252(self, multihost):
         cmd = multihost.client[0].run_command(sssctl_cmd)
         ret = multihost.client[0].service_sssd('status')
         assert ret == 0
+
+    @pytest.mark.tier1
+    def test_0001_bz1416150(self, multihost,
+                            backupsssdconf):
+        """
+        :title: ifp: sss_override does not take
+         precedence over override_homedir directive
+        :id: d2e98c70-26a0-11ec-bcf5-845cf3eff344
+        :bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1919942
+        """
+        tools = sssdTools(multihost.client[0])
+        domain_name = tools.get_domain_section_name()
+        client = sssdTools(multihost.client[0])
+        domain_params = {'override_homedir': '/home/%u1'}
+        client.sssd_conf(f'domain/{domain_name}', domain_params)
+        multihost.client[0].service_sssd('restart')
+        before = multihost.client[0].run_command("getent passwd "
+                                                 "foo5@example1")
+        assert before.returncode == 0
+        multihost.client[0].run_command("sss_override "
+                                        "user-add foo5@example1 -h "
+                                        "/home/foo56")
+        multihost.client[0].service_sssd('restart')
+        after = multihost.client[0].run_command("getent passwd "
+                                                "foo5@example1")
+        assert "User:/home/foo56" in after.stdout_text
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to