mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
sssd switch
This commit is contained in:
parent
f9044978de
commit
614a75cd79
1 changed files with 12 additions and 2 deletions
|
@ -58,6 +58,16 @@ class ExecuteSSSDAuthentication:
|
||||||
# Install libpam-sss sssd-common for sssd authentication
|
# Install libpam-sss sssd-common for sssd authentication
|
||||||
(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")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(result_code, p_out, p_err) = self.util.execute("chmod 600 {}".format(sssd_config_file_path))
|
||||||
|
if (result_code == 0):
|
||||||
|
self.logger.info("Chmod komutu başarılı bir şekilde çalıştırıldı")
|
||||||
|
else:
|
||||||
|
self.logger.error("Chmod komutu başarısız : " + str(p_err))
|
||||||
|
|
||||||
|
|
||||||
if result_code != 0:
|
if result_code != 0:
|
||||||
self.logger.error("SSSD packages couldn't be downloaded.")
|
self.logger.error("SSSD packages couldn't be downloaded.")
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue