sssd switch mecanism

This commit is contained in:
Agah Öz 2020-06-15 09:03:51 +03:00
parent 408cf0f486
commit 1aa2d3cb62

View file

@ -59,7 +59,9 @@ class ExecuteSSSDAuthentication:
(result_code, p_out, p_err) = self.util.execute("sudo apt install libpam-sss sssd-common -y")
if result_code != 0:
self.logger.error("SSSD packages couldn't be downloaded.")
return False
(result_code, p_out, p_err) = self.util.execute("chmod 600 {}".format(sssd_config_file_path))
if (result_code == 0):
@ -67,11 +69,6 @@ class ExecuteSSSDAuthentication:
else:
self.logger.error("Chmod komutu başarısız : " + str(p_err))
if result_code != 0:
self.logger.error("SSSD packages couldn't be downloaded.")
return False
# configure common-session for creating home directories for ldap users
file_common_session = open(common_session_conf_path, 'r')
file_data = file_common_session.read()