Index: conf/nutch-default.xml
===================================================================
--- conf/nutch-default.xml	(revision 366555)
+++ conf/nutch-default.xml	(working copy)
@@ -431,6 +431,14 @@
 </property>
 
 <property>
+  <name>mapred.job.tracker.info.password</name>
+  <value>changeme!</value>
+  <description>The password for the user 'admin' to access the MapReduce job tracker info webserver pages.
+  </description>
+</property>
+
+
+<property>
   <name>mapred.task.tracker.output.port</name>
   <value>50040</value>
   <description>The port number that the MapReduce task tracker output server uses as a starting
Index: src/java/org/apache/nutch/mapred/JobTrackerInfoServer.java
===================================================================
--- src/java/org/apache/nutch/mapred/JobTrackerInfoServer.java	(revision 366555)
+++ src/java/org/apache/nutch/mapred/JobTrackerInfoServer.java	(working copy)
@@ -79,6 +79,19 @@
         socketListener.setPort(port);
         this.server.addListener(socketListener);
 
+        SecurityHandler handler = new SecurityHandler();
+        handler.setAuthMethod("BASIC");
+        context.addHandler(handler);
+        context.setAuthenticator(new BasicAuthenticator());
+        SecurityConstraint sc = new SecurityConstraint();
+        sc.setAuthenticate(true);
+        sc.addRole(SecurityConstraint.ANY_ROLE);
+        context.addSecurityConstraint("/", sc);
+
+        HashUserRealm hr = new HashUserRealm("nutch");
+        hr.put("admin", NutchConf.get().get("mapred.job.tracker.info.password", "changeme!"));
+        this.server.addRealm(hr);
+        
         //
         // REMIND - mjc - I can't figure out how to get request redirect to work.
         // I've tried adding an additional default handler to the context, but
