Skip to content

Commit 3442ce1

Browse files
authored
RANGER-5538: username set incorrectly (#908)
1 parent 489fa6d commit 3442ce1

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerKRBAuthenticationFilter.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public class RangerKRBAuthenticationFilter extends RangerKrbFilter {
106106
static final String RULES_MECHANISM_PARAM = "kerberos.name.rules.mechanism";
107107

108108
private static final String KERBEROS_TYPE = "kerberos";
109-
private static final String S_USER = "suser";
110109

111110
protected static ServletContext noContext = new ServletContext() {
112111
@Override
@@ -519,15 +518,6 @@ protected void doFilter(FilterChain filterChain, HttpServletRequest request, Htt
519518
}
520519
}
521520

522-
String sessionUserName = request.getParameter(S_USER);
523-
String pathInfo = request.getPathInfo();
524-
525-
if (!StringUtils.isEmpty(sessionUserName) && "keyadmin".equalsIgnoreCase(sessionUserName) && !StringUtils.isEmpty(pathInfo) && pathInfo.contains("public/v2/api/service")) {
526-
LOG.info("Session will be created by : {}", sessionUserName);
527-
528-
userName = sessionUserName;
529-
}
530-
531521
LOG.debug("Remote user from request = {}", request.getRemoteUser());
532522

533523
if ((isSpnegoEnable(authType) && (!StringUtils.isEmpty(userName)))) {

0 commit comments

Comments
 (0)