mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-28 04:32:48 +03:00
sssd configuraton for ldap login
This commit is contained in:
parent
32f88e9fed
commit
de361cf2e2
3 changed files with 6 additions and 6 deletions
|
@ -159,7 +159,7 @@ class AhenkDaemon(BaseDaemon):
|
|||
# self.registration_failed()
|
||||
|
||||
if registration.is_registered() is False:
|
||||
print("Registation attemp")
|
||||
print("Registration attemp")
|
||||
max_attempt_number -= 1
|
||||
self.logger.debug('Ahenk is not registered. Attempting for registration')
|
||||
registration.registration_request(self.register_hostname,self.register_user_name,self.register_user_password)
|
||||
|
@ -260,7 +260,7 @@ class AhenkDaemon(BaseDaemon):
|
|||
conf_manager.set('MACHINE', 'user_disabled', '1')
|
||||
|
||||
with open('/etc/ahenk/ahenk.conf', 'w') as configfile:
|
||||
self.logger.info('oepning config file ')
|
||||
self.logger.info('opening config file ')
|
||||
conf_manager.write(configfile)
|
||||
|
||||
user_disabled = conf_manager.get("MACHINE", "user_disabled")
|
||||
|
|
|
@ -156,7 +156,7 @@ class ExecuteSSSDAuthentication:
|
|||
self.logger.info("lightdm.conf has been configured.")
|
||||
|
||||
self.util.execute("systemctl restart nscd.service")
|
||||
self.util.execute("pam-auth-update --force")
|
||||
# self.util.execute("pam-auth-update --force")
|
||||
self.logger.info("LDAP Login operation has been completed.")
|
||||
|
||||
self.logger.info("LDAP Login işlemi başarı ile sağlandı.")
|
||||
|
|
|
@ -128,9 +128,9 @@ class Registration:
|
|||
#admin_password = self.user_password # same user get from server
|
||||
admin_password = self.db_service.select_one_result('registration', 'password', ' registered=1')
|
||||
if server_address != '' and dn != '' and version != '' and admin_dn != '' and admin_password != '':
|
||||
self.logger.info("PAM LDAP configuration process starting....")
|
||||
self.ldap_login.login(server_address,dn,version,admin_dn,admin_password)
|
||||
self.logger.info("PAM LDAP configuration process starting....")
|
||||
self.logger.info("SSSD configuration process starting....")
|
||||
self.ldap_login.authenticate(server_address, dn, admin_dn, admin_password)
|
||||
self.logger.info("SSSD configuration process starting....")
|
||||
else :
|
||||
raise Exception(
|
||||
'LDAP Ayarları yapılırken hata oluştu. Lütfen ağ bağlantınızı kontrol ediniz. Deponuzun güncel olduğundan emin olunuz.')
|
||||
|
|
Loading…
Reference in a new issue