You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by co...@apache.org on 2017/02/09 11:39:03 UTC
ranger git commit: RANGER-1363:BadCredentialsException when login
Repository: ranger
Updated Branches:
refs/heads/master 1ffe40086 -> 1bcb9ebe5
RANGER-1363:BadCredentialsException when login
Signed-off-by: Colm O hEigeartaigh <co...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/1bcb9ebe
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/1bcb9ebe
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/1bcb9ebe
Branch: refs/heads/master
Commit: 1bcb9ebe55746ae69bd1d099af678a8f24c0c2f2
Parents: 1ffe400
Author: zhangqiang2 <zh...@zte.com.cn>
Authored: Thu Feb 9 19:27:07 2017 +0800
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Thu Feb 9 11:38:54 2017 +0000
----------------------------------------------------------------------
.../ranger/security/handler/RangerAuthenticationProvider.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ranger/blob/1bcb9ebe/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java b/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java
index 843af2d..3fdd5c2 100644
--- a/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java
+++ b/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java
@@ -138,12 +138,13 @@ public class RangerAuthenticationProvider implements AuthenticationProvider {
try {
authentication = getJDBCAuthentication(authentication,encoder);
} catch (Exception e) {
- logger.info("JDBC Authentication failure: ", e);
+ logger.debug("JDBC Authentication failure: ", e);
}
if (authentication !=null && authentication.isAuthenticated()) {
return authentication;
}
if (authentication != null && !authentication.isAuthenticated()) {
+ logger.info("Authentication with SHA-256 failed. Now trying with MD5.");
encoder="MD5";
String userName = authentication.getName();
String userPassword = null;