mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
sssd switch mecanism
This commit is contained in:
parent
408cf0f486
commit
1aa2d3cb62
1 changed files with 3 additions and 6 deletions
|
@ -59,7 +59,9 @@ class ExecuteSSSDAuthentication:
|
||||||
(result_code, p_out, p_err) = self.util.execute("sudo apt install libpam-sss sssd-common -y")
|
(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))
|
(result_code, p_out, p_err) = self.util.execute("chmod 600 {}".format(sssd_config_file_path))
|
||||||
if (result_code == 0):
|
if (result_code == 0):
|
||||||
|
@ -67,11 +69,6 @@ class ExecuteSSSDAuthentication:
|
||||||
else:
|
else:
|
||||||
self.logger.error("Chmod komutu başarısız : " + str(p_err))
|
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
|
# configure common-session for creating home directories for ldap users
|
||||||
file_common_session = open(common_session_conf_path, 'r')
|
file_common_session = open(common_session_conf_path, 'r')
|
||||||
file_data = file_common_session.read()
|
file_data = file_common_session.read()
|
||||||
|
|
Loading…
Reference in a new issue