HADOOP-11507 Hadoop RPC Authentication problem with different user locale. (Talat UYARER via stevel)
This commit is contained in:
parent
25f2cf8a4e
commit
28d165d9a5
|
@ -394,6 +394,9 @@ Release 2.7.0 - UNRELEASED
|
|||
HADOOP-11493. Fix some typos in kms-acls.xml description.
|
||||
(Charles Lamb via aajisaka)
|
||||
|
||||
HADOOP-11507 Hadoop RPC Authentication problem with different user locale.
|
||||
(Talat UYARER via stevel)
|
||||
|
||||
Release 2.6.0 - 2014-11-18
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
package org.apache.hadoop.security;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
|
||||
|
@ -65,7 +66,7 @@ public class SaslPropertiesResolver implements Configurable{
|
|||
CommonConfigurationKeysPublic.HADOOP_RPC_PROTECTION,
|
||||
QualityOfProtection.AUTHENTICATION.toString());
|
||||
for (int i=0; i < qop.length; i++) {
|
||||
qop[i] = QualityOfProtection.valueOf(qop[i].toUpperCase()).getSaslQop();
|
||||
qop[i] = QualityOfProtection.valueOf(qop[i].toUpperCase(Locale.ENGLISH)).getSaslQop();
|
||||
}
|
||||
properties.put(Sasl.QOP, StringUtils.join(",", qop));
|
||||
properties.put(Sasl.SERVER_AUTH, "true");
|
||||
|
|
Loading…
Reference in New Issue