diff options
author | des <des@FreeBSD.org> | 2002-04-15 06:26:32 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-15 06:26:32 +0000 |
commit | ade038672446241dfb226bdf496cc97e584015d9 (patch) | |
tree | 2a2289c130c2d78da2852a745e4e4a7f30021d1d /lib/libpam/modules | |
parent | 5fcac5fd3a02e5959bd17746a9db29e55fc41588 (diff) | |
download | FreeBSD-src-ade038672446241dfb226bdf496cc97e584015d9.zip FreeBSD-src-ade038672446241dfb226bdf496cc97e584015d9.tar.gz |
Use PAM_SUCCESS instead of PAM_IGNORE.
Diffstat (limited to 'lib/libpam/modules')
-rw-r--r-- | lib/libpam/modules/pam_opieaccess/pam_opieaccess.8 | 2 | ||||
-rw-r--r-- | lib/libpam/modules/pam_opieaccess/pam_opieaccess.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.8 b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.8 index fac671e..b539202 100644 --- a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.8 +++ b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.8 @@ -78,7 +78,7 @@ It also provides null functions for the remaining module types. The authentication component .Pq Fn pam_sm_authenticate , returns -.Dv PAM_IGNORE +.Dv PAM_SUCCESS in two cases: .Bl -enum .It diff --git a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c index d9499d9..67cbfc0 100644 --- a/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c +++ b/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c @@ -68,7 +68,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, pwent = getpwnam(luser); if (pwent == NULL || opielookup(&opie, luser) != 0) - return (PAM_IGNORE); + return (PAM_SUCCESS); r = pam_get_item(pamh, PAM_RHOST, (const void **)&rhost); if (r != PAM_SUCCESS) @@ -76,7 +76,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, if ((rhost == NULL || opieaccessfile(rhost)) && opiealways(pwent->pw_dir) != 0) - return (PAM_IGNORE); + return (PAM_SUCCESS); PAM_VERBOSE_ERROR("Refused; remote host is not in opieaccess"); |