From 853a1b42aa37905ee79457f8ad5f8499e57d2dc4 Mon Sep 17 00:00:00 2001 From: Theodotos Andreou Date: Fri, 23 Sep 2016 18:12:45 +0300 Subject: [PATCH] Added flask_ldap_login patch --- docker/flask_ldap_login.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docker/flask_ldap_login.patch diff --git a/docker/flask_ldap_login.patch b/docker/flask_ldap_login.patch new file mode 100644 index 0000000..6c13620 --- /dev/null +++ b/docker/flask_ldap_login.patch @@ -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) +