mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
Use PAM_SUCCESS instead of PAM_IGNORE.
This commit is contained in:
parent
f9d32093a6
commit
53fd6d26b2
2 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue