errc(1, EPERM, NULL);
}
-#if defined(USE_SHADOW)
if (!(rule->options & NOPASS)) {
if (nflag)
errx(1, "Authentication required");
if (ret == 5)
authfail(rule->options & INSULT);
}
-#elif !defined(USE_PAM)
- /* no authentication provider, only allow NOPASS rules */
- (void) nflag;
- if (!(rule->options & NOPASS))
- errx(1, "Authentication required");
-#endif
if ((p = getenv("PATH")) != NULL)
formerpath = strdup(p);
if (targpw == NULL)
errx(1, "no passwd entry for target");
-#if defined(USE_PAM)
- pamauth(targpw->pw_name, mypw->pw_name, !nflag, rule->options & NOPASS,
- rule->options & PERSIST);
-#endif
-
#ifdef HAVE_LOGIN_CAP_H
if (setusercontext(NULL, targpw, target, LOGIN_SETGROUP |
LOGIN_SETPATH |