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 2016/12/22 16:13:41 UTC
incubator-ranger git commit: Remove duplicate call to
"getUnixAuthentication"
Repository: incubator-ranger
Updated Branches:
refs/heads/master 6ba6af021 -> 57c88b548
Remove duplicate call to "getUnixAuthentication"
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/57c88b54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/57c88b54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/57c88b54
Branch: refs/heads/master
Commit: 57c88b548d74f775255fe94646f0b78de49b1af7
Parents: 6ba6af0
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Thu Dec 22 16:13:28 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Thu Dec 22 16:13:28 2016 +0000
----------------------------------------------------------------------
.../ranger/security/handler/RangerAuthenticationProvider.java | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/57c88b54/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 75c4eb0..fd81ad0 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
@@ -123,7 +123,6 @@ public class RangerAuthenticationProvider implements AuthenticationProvider {
if (rangerAuthenticationMethod.equalsIgnoreCase("UNIX")) {
boolean isPAMAuthEnabled = PropertiesUtil.getBooleanProperty("ranger.pam.authentication.enabled", false);
authentication= (isPAMAuthEnabled ? getPamAuthentication(authentication) : getUnixAuthentication(authentication));
- authentication= getUnixAuthentication(authentication);
if(authentication!=null && authentication.isAuthenticated()){
return authentication;
}