allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [07/11] git commit: [#7388] ticket:591 Catch exception raised when trying to login with empty password and valid username
Date Fri, 23 May 2014 17:55:00 GMT
[#7388] ticket:591 Catch exception raised when trying to login with empty password and valid
username


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/5e5cdea5
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/5e5cdea5
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/5e5cdea5

Branch: refs/heads/master
Commit: 5e5cdea570e993a71cd377b30322e2c6c92313b6
Parents: 78d63bf
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon May 19 10:25:11 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri May 23 17:53:45 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/plugin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/5e5cdea5/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 40683b9..2de236f 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -403,7 +403,7 @@ class LdapAuthenticationProvider(AuthenticationProvider):
             con = ldap.initialize(config['auth.ldap.server'])
             con.bind_s(dn, self.request.params['password'])
             con.unbind_s()
-        except ldap.INVALID_CREDENTIALS:
+        except (ldap.INVALID_CREDENTIALS, ldap.UNWILLING_TO_PERFORM):
             raise exc.HTTPUnauthorized()
         return user
 


Mime
View raw message