mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
disable user change
This commit is contained in:
parent
cfcc9213e6
commit
a0035a3253
2 changed files with 1 additions and 4 deletions
|
@ -121,10 +121,9 @@ class AnonymousMessenger(ClientXMPP):
|
||||||
self.disconnect()
|
self.disconnect()
|
||||||
self.logger.info('Rebooting...')
|
self.logger.info('Rebooting...')
|
||||||
self.disable_local_users()
|
self.disable_local_users()
|
||||||
Util.shutdown();
|
|
||||||
System.Process.kill_by_pid(int(System.Ahenk.get_pid_number()))
|
System.Process.kill_by_pid(int(System.Ahenk.get_pid_number()))
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
Util.shutdown();
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error('Error Message: {0}.'.format(str(e)))
|
self.logger.error('Error Message: {0}.'.format(str(e)))
|
||||||
|
|
|
@ -91,8 +91,6 @@ class Registration:
|
||||||
self.logger.info('updating host name and service')
|
self.logger.info('updating host name and service')
|
||||||
self.install_and_config_ldap(reg_reply)
|
self.install_and_config_ldap(reg_reply)
|
||||||
self.update_registration_attrs(dn)
|
self.update_registration_attrs(dn)
|
||||||
self.logger.info('Disable Users')
|
|
||||||
self.disable_local_users()
|
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error('Registartion error. Error Message: {0}.'.format(str(e)))
|
self.logger.error('Registartion error. Error Message: {0}.'.format(str(e)))
|
||||||
|
|
Loading…
Reference in a new issue