1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00

init backends initialization method

This commit is contained in:
kakwa 2015-05-19 00:14:34 +02:00
parent caf799ba2a
commit a3938c73b4

View File

@ -76,6 +76,9 @@ class LdapCherry(object):
else: else:
raise MissingParameter(section, key) raise MissingParameter(section, key)
def _init_backends(self, config):
pass
def _set_access_log(self, config, level): def _set_access_log(self, config, level):
access_handler = self._get_param('global', 'log.access_handler', config, 'syslog') access_handler = self._get_param('global', 'log.access_handler', config, 'syslog')
@ -196,6 +199,7 @@ class LdapCherry(object):
self.attributes_file = self._get_param('attributes', 'attributes.file', config) self.attributes_file = self._get_param('attributes', 'attributes.file', config)
self.roles = Attributes(self.attributes_file) self.roles = Attributes(self.attributes_file)
self._init_backends(config)
except Exception as e: except Exception as e:
self._handle_exception(e) self._handle_exception(e)