Set pwok to 1 for non-OPIE users

This commit is contained in:
Andrey A. Chernov 2002-01-19 03:31:39 +00:00
parent 50356ef361
commit 8c70adab72

View File

@ -108,7 +108,6 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
*/
opiedisableaeh();
pwok = 0;
if (opiechallenge(&opie, (char *)user, challenge) == 0) {
rhost = NULL;
(void) pam_get_item(pamh, PAM_RHOST, (const void **)&rhost);
@ -116,7 +115,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
(rhost != NULL) && (*rhost != '\0') &&
opieaccessfile((char *)rhost) &&
opiealways(pwd->pw_dir);
}
} else
pwok = 1;
for (i = 0; i < 2; i++) {
snprintf(prompt, sizeof prompt, promptstr[i], challenge);
retval = pam_get_pass(pamh, &response, prompt, &options);