--- /root/modules_old.py        2007-01-17 18:32:29.000000000 -0500
+++ ./contrib/auth/models.py    2007-01-17 18:30:58.000000000 -0500
@@ -17,6 +17,12 @@
     elif algo == 'sha1':
         import sha
         return hsh == sha.new(salt+raw_password).hexdigest()
+    elif algo == 'crypt':
+        try:
+            import crypt
+        except:
+            raise ValueError, "Crypt password algorithm not supported in this environment."
+        return hsh == crypt.crypt(raw_password, salt)

     raise ValueError, "Got unknown password algorithm type in password."