Added flask_ldap_login patch
This commit is contained in:
parent
042f0f5fb0
commit
853a1b42aa
15
docker/flask_ldap_login.patch
Normal file
15
docker/flask_ldap_login.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
--- /usr/local/lib/python2.7/dist-packages/flask_ldap_login/__init__.py 2016-09-20 17:35:02.000000000 -0400
|
||||||
|
+++ /usr/local/lib/python2.7/dist-packages/flask_ldap_login/__init__.py.new 2016-09-21 00:54:48.023264379 -0400
|
||||||
|
@@ -207,9 +207,11 @@
|
||||||
|
for opt, value in self.config.get('OPTIONS', {}).items():
|
||||||
|
if isinstance(opt, str):
|
||||||
|
opt = getattr(ldap, opt)
|
||||||
|
-
|
||||||
|
+ try:
|
||||||
|
if isinstance(value, str):
|
||||||
|
value = getattr(ldap, value)
|
||||||
|
+ except AttributeError:
|
||||||
|
+ pass
|
||||||
|
|
||||||
|
self.conn.set_option(opt, value)
|
||||||
|
|
Loading…
Reference in a new issue