adding config for cache

This commit is contained in:
edip 2019-01-02 16:52:35 +03:00
parent 4493fb34d3
commit 6ee98f1997

View file

@ -120,7 +120,7 @@ class Registration:
server_address, "\'" + dn + "\'", "\'" + admin_dn + "\'", "\'" + admin_password + "\'", version)) server_address, "\'" + dn + "\'", "\'" + admin_dn + "\'", "\'" + admin_password + "\'", version))
if result_code == 0: if result_code == 0:
self.logger.info("Script has run successfully") self.logger.info("Script has run successfully")
self.change_pam_ldap_configs() self.change_pam_ldap_configs(reg_reply)
else: else:
self.logger.error("Script could not run successfully: " + p_err) self.logger.error("Script could not run successfully: " + p_err)
print("ERROR ---> " + str(p_err)) print("ERROR ---> " + str(p_err))
@ -134,7 +134,6 @@ class Registration:
def change_pam_ldap_configs(self,reg_reply): def change_pam_ldap_configs(self,reg_reply):
server_address = str(reg_reply['ldapServer']) server_address = str(reg_reply['ldapServer'])
dn = str(reg_reply['ldapBaseDn']) dn = str(reg_reply['ldapBaseDn'])