pardus21 bug fixed

This commit is contained in:
enghulusi 2021-09-07 10:07:22 +03:00
parent 17da8ebeea
commit b252637a09
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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()