mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 18:54:29 +01:00
init backends initialization method
This commit is contained in:
parent
caf799ba2a
commit
a3938c73b4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user