]> andersk Git - moira.git/commitdiff
handle encrypted IDs
authormar <mar>
Wed, 24 Jun 1992 18:02:37 +0000 (18:02 +0000)
committermar <mar>
Wed, 24 Jun 1992 18:02:37 +0000 (18:02 +0000)
reg_svr/reg_svr.c

index c531f31b8ce2f0a1ff9f40eff09644ed2f5128e9..f872f0781e52afb7fbd1cbfb0486b6fb17490915 100644 (file)
@@ -1018,9 +1018,15 @@ char *retval;
 #endif
 
     if (strcmp(id, argv[U_MITID + 1])) {
-       status = UREG_USER_NOT_FOUND;
-       com_err(whoami, status, "IDs mismatch: %s, %s", id, argv[U_MITID + 1]);
-       return status;
+       char buf[32];
+
+       EncryptID(buf, id, argv[U_FIRST+1], argv[U_LAST+1]);
+       if (strcmp(buf, argv[U_MITID + 1])) {
+           status = UREG_USER_NOT_FOUND;
+           com_err(whoami, status, "IDs mismatch: %s (%s), %s", id, buf,
+                   argv[U_MITID + 1]);
+           return status;
+       }
     }
 
     /* now do actual password setting stuff */
This page took 0.079136 seconds and 5 git commands to generate.