[sagenb] 17/179: LdapAuth: made user_lookup return None if import ldap fails

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 47acf73510f91a0d5a946fd25bc19c7d6e08398d
Author: Robin Martinjak <rob at rmartinjak.de>
Date:   Sun Jul 15 18:19:19 2012 +0200

    LdapAuth: made user_lookup return None if import ldap fails
---
 sagenb/notebook/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sagenb/notebook/auth.py b/sagenb/notebook/auth.py
index c7361b3..03550c1 100644
--- a/sagenb/notebook/auth.py
+++ b/sagenb/notebook/auth.py
@@ -98,7 +98,7 @@ class LdapAuth(AuthMethod):
         # return None if more than 1 object found
         return result[0] if len(result) == 1 else None
 
-    @_require_ldap([])
+    @_require_ldap(None)
     def user_lookup(self, search):
         from ldap.filter import filter_format
         from ldap import LDAPError

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list