Browse Source

Added flask_ldap_login patch

master
Theodotos Andreou 7 years ago
parent
commit
853a1b42aa
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      docker/flask_ldap_login.patch

+ 15
- 0
docker/flask_ldap_login.patch View 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…
Cancel
Save