Index: server/common/oursrc/whoisd/whoisd.tac
===================================================================
--- server/common/oursrc/whoisd/whoisd.tac	(revision 771)
+++ server/common/oursrc/whoisd/whoisd.tac	(revision 772)
@@ -8,5 +8,5 @@
     def lineReceived(self, hostname):
     	(key, hostname) = hostname.split('=',2)
-	if key != '0xvVk043ZT61jR1bAlX0JSzM':
+	if key != self.factory.key:
             self.transport.write("Unauthorized to use whois"+"\r\n")
 	    self.transport.loseConnection()
@@ -19,5 +19,5 @@
 class WhoisFactory(protocol.ServerFactory):
     protocol = WhoisProtocol
-    def __init__(self, vhostDir, ldap_URL, ldap_base):
+    def __init__(self, vhostDir, ldap_URL, ldap_base, keyFile):
         self.vhostDir = vhostDir
         self.ldap_URL = ldap_URL
@@ -27,4 +27,5 @@
         if vhostDir:
             self.rescanVhosts()
+        self.key = file(keyFile).read()
     def rescanVhosts(self):
         newVhosts = {}
@@ -94,5 +95,5 @@
 application = service.Application('whois', uid=99, gid=99)
 factory = WhoisFactory(None,
-    "ldap://localhost", "ou=VirtualHosts,dc=scripts,dc=mit,dc=edu")
+    "ldap://localhost", "ou=VirtualHosts,dc=scripts,dc=mit,dc=edu", "/etc/whoisd-password")
 internet.TCPServer(43, factory).setServiceParent(
     service.IServiceCollection(application))
