disable user change

This commit is contained in:
edip 2018-11-13 14:28:48 +03:00
parent cfcc9213e6
commit a0035a3253
2 changed files with 1 additions and 4 deletions

View file

@ -121,10 +121,9 @@ class AnonymousMessenger(ClientXMPP):
self.disconnect()
self.logger.info('Rebooting...')
self.disable_local_users()
Util.shutdown();
System.Process.kill_by_pid(int(System.Ahenk.get_pid_number()))
sys.exit(2)
Util.shutdown();
except Exception as e:
self.logger.error('Error Message: {0}.'.format(str(e)))

View file

@ -91,8 +91,6 @@ class Registration:
self.logger.info('updating host name and service')
self.install_and_config_ldap(reg_reply)
self.update_registration_attrs(dn)
self.logger.info('Disable Users')
self.disable_local_users()
except Exception as e:
self.logger.error('Registartion error. Error Message: {0}.'.format(str(e)))