HADOOP-8309. Pseudo & Kerberos AuthenticationHandler should use getType() to create token (tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1329713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2012-04-24 13:44:53 +00:00
parent f340d6c894
commit f9993b5ffb
3 changed files with 5 additions and 2 deletions

View File

@ -288,7 +288,7 @@ public AuthenticationToken run() throws Exception {
String clientPrincipal = gssContext.getSrcName().toString();
KerberosName kerberosName = new KerberosName(clientPrincipal);
String userName = kerberosName.getShortName();
token = new AuthenticationToken(userName, clientPrincipal, TYPE);
token = new AuthenticationToken(userName, clientPrincipal, getType());
response.setStatus(HttpServletResponse.SC_OK);
LOG.trace("SPNEGO completed for principal [{}]", clientPrincipal);
}

View File

@ -126,7 +126,7 @@ public AuthenticationToken authenticate(HttpServletRequest request, HttpServletR
throw new AuthenticationException("Anonymous requests are disallowed");
}
} else {
token = new AuthenticationToken(userName, userName, TYPE);
token = new AuthenticationToken(userName, userName, getType());
}
return token;
}

View File

@ -370,6 +370,9 @@ Release 2.0.0 - UNRELEASED
HADOOP-8284. clover integration broken, also mapreduce poms are pulling
in clover as a dependency. (phunt via tucu)
HADOOP-8309. Pseudo & Kerberos AuthenticationHandler should use
getType() to create token (tucu)
BREAKDOWN OF HADOOP-7454 SUBTASKS
HADOOP-7455. HA: Introduce HA Service Protocol Interface. (suresh)