Browse Source

commit 295ee58e3fd04967f35b59fd3c3a4a7546c66a9e
Author: Devaraj Das <ddas@yahoo-inc.com>
Date: Fri Feb 5 15:29:26 2010 -0800

HADOOP:6538 from https://issues.apache.org/jira/secure/attachment/12435031/6538-bp20.patch

+++ b/YAHOO-CHANGES.txt
+ HADOOP-6538. Sets hadoop.security.authentication to simple by default.
+ (ddas)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077149 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 years ago
parent
commit
f407f0620b

+ 7 - 0
src/core/core-default.xml

@@ -37,6 +37,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>

+ 2 - 2
src/core/org/apache/hadoop/security/UserGroupInformation.java

@@ -146,9 +146,9 @@ public class UserGroupInformation {
    */
   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 " +