Skip to content
Snippets Groups Projects
Unverified Commit 151d8de5 authored by Sylvain WITMEYER's avatar Sylvain WITMEYER Committed by GitHub
Browse files

Bind ldap to current app

parent d324fbfa
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,9 @@ class LDAP(object): ...@@ -76,6 +76,9 @@ class LDAP(object):
if app.config['LDAP_{0}'.format(option)] is None: if app.config['LDAP_{0}'.format(option)] is None:
raise LDAPException('LDAP_{0} cannot be None!'.format(option)) raise LDAPException('LDAP_{0} cannot be None!'.format(option))
# Bind LDAP to app
app.ldap = self
@staticmethod @staticmethod
def _set_custom_options(conn): def _set_custom_options(conn):
options = current_app.config['LDAP_CUSTOM_OPTIONS'] options = current_app.config['LDAP_CUSTOM_OPTIONS']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment