1f0bd468b3
- ipatests: fix test_topology Resolves: RHBZ#2232351 - Installer: activate nss and pam services in sssd.conf Resolves: RHBZ#2216532 Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From f38eefd9f7e54470de7c707782114b17aac8762a Mon Sep 17 00:00:00 2001
|
|
From: Florence Blanc-Renaud <flo@redhat.com>
|
|
Date: Aug 16 2023 15:25:34 +0000
|
|
Subject: Installer: activate nss and pam services in sssd.conf
|
|
|
|
|
|
If there is already a sssd.conf file before the installer is
|
|
executed, the nss and pam services may not be enabled by the
|
|
installer. This happens for instance if the machine is hardened
|
|
for STIG and sssd.conf does not define services=... in the
|
|
[sssd] section.
|
|
|
|
The consequence is that trust cannot be established with an AD
|
|
domain.
|
|
|
|
The installer must enable nss and pam services even if there is
|
|
a pre-existing sssd.conf file.
|
|
|
|
Fixes: https://pagure.io/freeipa/issue/9427
|
|
|
|
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
|
|
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
|
|
|
|
---
|
|
|
|
diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py
|
|
index ef29a2c..07d62a7 100644
|
|
--- a/ipaclient/install/client.py
|
|
+++ b/ipaclient/install/client.py
|
|
@@ -969,6 +969,9 @@ def configure_sssd_conf(
|
|
nss_service.set_option('memcache_timeout', 600)
|
|
sssdconfig.save_service(nss_service)
|
|
|
|
+ sssd_enable_service(sssdconfig, 'nss')
|
|
+ sssd_enable_service(sssdconfig, 'pam')
|
|
+
|
|
domain.set_option('ipa_domain', cli_domain)
|
|
domain.set_option('ipa_hostname', client_hostname)
|
|
if cli_domain.lower() != cli_realm.lower():
|
|
|