--- Authenticate.py.orig	Tue Dec  2 11:16:16 2003
+++ Authenticate.py	Tue Dec  2 11:39:57 2003
@@ -41,6 +41,12 @@
 def InitProgramAuth( Program ):
   """Initializes the authentication scheme with a checkpw-style program.
     (Implemented by Auth.py)"""
+
+  # Populate TCPLOCALHOST vor checkpw-stype programs that need it
+  # (i.e. checkvpw)
+  if os.environ.has_key("HTTP_HOST"):
+    os.putenv('TCPLOCALHOST',os.environ["HTTP_HOST"])
+
   global authinit
   authinit = 0
   try:
