Use PAM_SUCCESS instead of PAM_IGNORE.

This commit is contained in:
Dag-Erling Smørgrav 2002-04-15 06:26:32 +00:00
parent f9d32093a6
commit 53fd6d26b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94734
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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");