You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2020/04/16 12:41:18 UTC

[ranger] branch master updated: RANGER-2793 : fixed Admin log clogged with a warning

This is an automated email from the ASF dual-hosted git repository.

mehul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e2f4ba  RANGER-2793 : fixed Admin log clogged with a warning
0e2f4ba is described below

commit 0e2f4ba26d83866adb3e924a4e45fbabe0777e27
Author: Dineshkumar Yadav <di...@outlook.com>
AuthorDate: Mon Apr 13 21:54:04 2020 +0530

    RANGER-2793 : fixed Admin log clogged with a warning
    
    Signed-off-by: Mehul Parikh <me...@apache.org>
---
 .../ranger/security/web/filter/RangerKRBAuthenticationFilter.java      | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKRBAuthenticationFilter.java b/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKRBAuthenticationFilter.java
index 994559e..9877e14 100644
--- a/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKRBAuthenticationFilter.java
+++ b/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKRBAuthenticationFilter.java
@@ -108,6 +108,8 @@ public class RangerKRBAuthenticationFilter extends RangerKrbFilter {
 	static final String HOST_NAME = "ranger.service.host";
 	static final String ALLOW_TRUSTED_PROXY = "ranger.authentication.allow.trustedproxy";
 	static final String PROXY_PREFIX = "ranger.proxyuser.";
+	static final String RULES_MECHANISM = "hadoop.security.rules.mechanism";
+	static final String RULES_MECHANISM_PARAM = "kerberos.name.rules.mechanism";
 
 	private static final String KERBEROS_TYPE = "kerberos";
 	private static final String S_USER = "suser";
@@ -130,6 +132,7 @@ public class RangerKRBAuthenticationFilter extends RangerKrbFilter {
 		params.put(COOKIE_DOMAIN_PARAM, PropertiesUtil.getProperty(COOKIE_DOMAIN, PropertiesUtil.getProperty(HOST_NAME, "localhost")));
 		params.put(COOKIE_PATH_PARAM, PropertiesUtil.getProperty(COOKIE_PATH, "/"));
 		params.put(ALLOW_TRUSTED_PROXY, PropertiesUtil.getProperty(ALLOW_TRUSTED_PROXY, "false"));
+		params.put(RULES_MECHANISM_PARAM, PropertiesUtil.getProperty(RULES_MECHANISM, "hadoop"));
 		try {
 			params.put(PRINCIPAL_PARAM, SecureClientLogin.getPrincipal(PropertiesUtil.getProperty(PRINCIPAL,""), PropertiesUtil.getProperty(HOST_NAME)));
 		} catch (IOException ignored) {