HADOOP-6518. Makes the UGI honor the env var KRB5CCNAME. Contributed by Owen O'Malley.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@904975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
96cd62f8d5
commit
fe0ddc03e1
@ -119,6 +119,9 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-6495. Identifier should be serialized after the password is
|
HADOOP-6495. Identifier should be serialized after the password is
|
||||||
created In Token constructor (jnp via boryas)
|
created In Token constructor (jnp via boryas)
|
||||||
|
|
||||||
|
HADOOP-6518. Makes the UGI honor the env var KRB5CCNAME.
|
||||||
|
(Owen O'Malley via ddas)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -241,6 +241,10 @@ private static class HadoopConfiguration
|
|||||||
static {
|
static {
|
||||||
USER_KERBEROS_OPTIONS.put("doNotPrompt", "true");
|
USER_KERBEROS_OPTIONS.put("doNotPrompt", "true");
|
||||||
USER_KERBEROS_OPTIONS.put("useTicketCache", "true");
|
USER_KERBEROS_OPTIONS.put("useTicketCache", "true");
|
||||||
|
String ticketCache = System.getenv("KRB5CCNAME");
|
||||||
|
if (ticketCache != null) {
|
||||||
|
USER_KERBEROS_OPTIONS.put("ticketCache", ticketCache);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private static final AppConfigurationEntry USER_KERBEROS_LOGIN =
|
private static final AppConfigurationEntry USER_KERBEROS_LOGIN =
|
||||||
new AppConfigurationEntry(Krb5LoginModule.class.getName(),
|
new AppConfigurationEntry(Krb5LoginModule.class.getName(),
|
||||||
|
Loading…
Reference in New Issue
Block a user