diff options
author | des <des@FreeBSD.org> | 2002-01-21 19:05:45 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-01-21 19:05:45 +0000 |
commit | ac843e8b7511b646a7f8c2936d56e63c78508930 (patch) | |
tree | 9b433481c1a79da767e5a844e1899a398920c28c | |
parent | aeaf48654b44a82de8184306336559b75708d4a9 (diff) | |
download | FreeBSD-src-ac843e8b7511b646a7f8c2936d56e63c78508930.zip FreeBSD-src-ac843e8b7511b646a7f8c2936d56e63c78508930.tar.gz |
On second thought, getpwnam() failure should be treated just as if the user
existed, but had no OPIE key, i.e. PAM_IGNORE.
Pointed out by: ache
Sponsored by: DARPA, NAI Labs
-rw-r--r-- | lib/libpam/modules/pam_opieaccess/pam_opieaccess.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c index a2716f5..9da6c0e 100644 --- a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c +++ b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c @@ -72,10 +72,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv) PAM_RETURN(PAM_SERVICE_ERR); pwent = getpwnam(luser); - if (pwent == NULL) - PAM_RETURN(PAM_SERVICE_ERR); - - if (opielookup(&opie, luser) != 0) + if (pwent == NULL || opielookup(&opie, luser) != 0) PAM_RETURN(PAM_IGNORE); r = pam_get_item(pamh, PAM_RHOST, (const void **)&rhost); |