mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
Use PAM_SUCCESS instead of PAM_IGNORE.
This commit is contained in:
parent
f9d32093a6
commit
53fd6d26b2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94734
@ -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
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user