#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 */