Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public class RangerKRBAuthenticationFilter extends RangerKrbFilter {
static final String RULES_MECHANISM_PARAM = "kerberos.name.rules.mechanism";

private static final String KERBEROS_TYPE = "kerberos";
private static final String S_USER = "suser";

protected static ServletContext noContext = new ServletContext() {
@Override
Expand Down Expand Up @@ -519,15 +518,6 @@ protected void doFilter(FilterChain filterChain, HttpServletRequest request, Htt
}
}

String sessionUserName = request.getParameter(S_USER);
String pathInfo = request.getPathInfo();

if (!StringUtils.isEmpty(sessionUserName) && "keyadmin".equalsIgnoreCase(sessionUserName) && !StringUtils.isEmpty(pathInfo) && pathInfo.contains("public/v2/api/service")) {
LOG.info("Session will be created by : {}", sessionUserName);

userName = sessionUserName;
}

LOG.debug("Remote user from request = {}", request.getRemoteUser());

if ((isSpnegoEnable(authType) && (!StringUtils.isEmpty(userName)))) {
Expand Down
Loading