mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
fix another __import__
This commit is contained in:
parent
3beedc8d4d
commit
ccc252965d
@ -243,7 +243,7 @@ class LdapCherry(object):
|
|||||||
elif self.auth_mode == 'custom':
|
elif self.auth_mode == 'custom':
|
||||||
# load custom auth module
|
# load custom auth module
|
||||||
auth_module = self._get_param('auth', 'auth.module', config)
|
auth_module = self._get_param('auth', 'auth.module', config)
|
||||||
auth = __import__(auth_module, globals(), locals(), ['Auth'], -1)
|
auth = __import__(auth_module, globals(), locals(), ['Auth'], 0)
|
||||||
self.auth = auth.Auth(config['auth'], cherrypy.log)
|
self.auth = auth.Auth(config['auth'], cherrypy.log)
|
||||||
else:
|
else:
|
||||||
raise WrongParamValue(
|
raise WrongParamValue(
|
||||||
|
Loading…
Reference in New Issue
Block a user