From b252637a09069eb463b903edde93efe67a82aaac Mon Sep 17 00:00:00 2001 From: enghulusi Date: Tue, 7 Sep 2021 10:07:22 +0300 Subject: [PATCH] pardus21 bug fixed --- src/base/registration/config-files/sssd_ad.conf | 2 +- src/base/registration/config-files/sssd_ad_dns.conf | 2 +- src/base/registration/execute_sssd_ad_authentication.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/registration/config-files/sssd_ad.conf b/src/base/registration/config-files/sssd_ad.conf index ddb1adc..2b83821 100644 --- a/src/base/registration/config-files/sssd_ad.conf +++ b/src/base/registration/config-files/sssd_ad.conf @@ -12,7 +12,7 @@ config_file_version = 2 services = nss, pam ###[domain/### -###ad_domain### +###ad_server### ###krb5_realm### realmd_tags = manages-system joined-with-adcli cache_credentials = True diff --git a/src/base/registration/config-files/sssd_ad_dns.conf b/src/base/registration/config-files/sssd_ad_dns.conf index 9397ddd..3aebf74 100644 --- a/src/base/registration/config-files/sssd_ad_dns.conf +++ b/src/base/registration/config-files/sssd_ad_dns.conf @@ -12,7 +12,7 @@ config_file_version = 2 services = nss, pam ###[domain/### -###ad_domain### +###ad_server### ###krb5_realm### realmd_tags = manages-system joined-with-adcli cache_credentials = True diff --git a/src/base/registration/execute_sssd_ad_authentication.py b/src/base/registration/execute_sssd_ad_authentication.py index af8ffb2..3d85f07 100644 --- a/src/base/registration/execute_sssd_ad_authentication.py +++ b/src/base/registration/execute_sssd_ad_authentication.py @@ -227,7 +227,7 @@ class ExecuteSSSDAdAuthentication: file_data = file_data.replace("###domains###", "domains = {}".format(domain_name)) file_data = file_data.replace("###[domain/###", "[domain/{}]".format(domain_name)) - file_data = file_data.replace("###ad_domain###", "ad_domain = {}".format(domain_name)) + file_data = file_data.replace("###ad_server###", "ad_server = {}".format(domain_name)) file_data = file_data.replace("###krb5_realm###", "krb5_realm = {}".format(domain_name.upper())) file_data = file_data.replace("###ad_hostname###", "ad_hostname = {0}.{1}".format(self.system.Os.hostname(), @@ -271,7 +271,7 @@ class ExecuteSSSDAdAuthentication: file_data = file_data.replace("###domains###", "domains = {}".format(domain_name)) file_data = file_data.replace("###[domain/###", "[domain/{}]".format(domain_name)) - file_data = file_data.replace("###ad_domain###", "ad_domain = {}".format(domain_name)) + file_data = file_data.replace("###ad_server###", "ad_server = {}".format(domain_name)) file_data = file_data.replace("###krb5_realm###", "krb5_realm = {}".format(domain_name.upper())) file_sssd.close()