HADOOP-6538. Sets hadoop.security.authentication to simple by default. Contributed by Devaraj Das.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@906388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Devaraj Das 2010-02-04 07:46:20 +00:00
parent 9f7a07f908
commit f786508cd3
3 changed files with 12 additions and 2 deletions

View File

@ -169,6 +169,9 @@ Trunk (unreleased changes)
HADOOP-6517. Fix UserGroupInformation so that tokens are saved/retrieved
to/from the embedded Subject (Owen O'Malley & Kan Zhang via ddas)
HADOOP-6538. Sets hadoop.security.authentication to simple by default.
(ddas)
Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -59,6 +59,13 @@
<description>Is service-level authorization enabled?</description>
</property>
<property>
<name>hadoop.security.authentication</name>
<value>simple</value>
<description>Possible values are simple (no authentication), and kerberos
</description>
</property>
<!--- logging properties -->
<property>

View File

@ -151,9 +151,9 @@ private static synchronized void ensureInitialized() {
*/
private static synchronized void initialize(Configuration conf) {
String value = conf.get(HADOOP_SECURITY_AUTHENTICATION);
if ("simple".equals(value)) {
if (value == null || "simple".equals(value)) {
useKerberos = false;
} else if (value == null || "kerberos".equals(value)) {
} else if ("kerberos".equals(value)) {
useKerberos = true;
} else {
throw new IllegalArgumentException("Invalid attribute value for " +