From fe3469de86c17efda0c2de3c53cfcc4dd0196e16 Mon Sep 17 00:00:00 2001 From: agahhulusi Date: Fri, 10 Sep 2021 11:51:57 +0300 Subject: [PATCH] ahenkpostint add SSSD language settings --- debian/ahenk.postinst | 13 +++++++++++-- .../registration/execute_sssd_ad_authentication.py | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/debian/ahenk.postinst b/debian/ahenk.postinst index 9b7f06a..51b0169 100644 --- a/debian/ahenk.postinst +++ b/debian/ahenk.postinst @@ -13,13 +13,22 @@ if [ ! -d /etc/ahenk ]; then fi # update pardus21 sssd conf changes when update pardus from 24 to 25 -if [ -f /etc/ahenk/ad_info ]; then - +if [ -d /etc/ahenk ]; then + if [ -f /etc/ahenk/ad_info ]; then if [ -f /etc/sssd/sssd.conf ]; then sed -i 's/ad_domain/ad_server/g' /etc/sssd/sssd.conf systemctl restart sssd.service fi + fi +fi +if [ -d /etc/sssd ]; then + if grep -Fxq 'LC_ALL="tr_CY.UTF-8"' /etc/default/sssd + then + : + else + echo """LC_ALL=\"tr_CY.UTF-8\"""" >> /etc/default/sssd + fi fi systemctl enable ahenk diff --git a/src/base/registration/execute_sssd_ad_authentication.py b/src/base/registration/execute_sssd_ad_authentication.py index 3d85f07..7c2bc47 100644 --- a/src/base/registration/execute_sssd_ad_authentication.py +++ b/src/base/registration/execute_sssd_ad_authentication.py @@ -155,6 +155,10 @@ class ExecuteSSSDAdAuthentication: file_default_pam.close() self.discover_try_counter2 = 0 + + + + try: while (True): self.discover_try_counter2 = self.discover_try_counter2 + 1