diff options
author | danny <danny@FreeBSD.org> | 1997-04-16 02:07:10 +0000 |
---|---|---|
committer | danny <danny@FreeBSD.org> | 1997-04-16 02:07:10 +0000 |
commit | 0f60b61ddaa2ff4974f8ec0368ead4670b4368dc (patch) | |
tree | 1a3104d65810533d3ccb44da85e787c73ba9e497 /usr.sbin/pppd/auth.c | |
parent | f71c6eb3d47de8a1b999285fe777c6ce074bc9f4 (diff) | |
download | FreeBSD-src-0f60b61ddaa2ff4974f8ec0368ead4670b4368dc.zip FreeBSD-src-0f60b61ddaa2ff4974f8ec0368ead4670b4368dc.tar.gz |
Suggested by: David Nugent
Use /etc/ppp/ppp.deny instead of /etc/ppp/ppp.disabled
Diffstat (limited to 'usr.sbin/pppd/auth.c')
-rw-r--r-- | usr.sbin/pppd/auth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index 56fbd28..42e23f3 100644 --- a/usr.sbin/pppd/auth.c +++ b/usr.sbin/pppd/auth.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: auth.c,v 1.13 1997/04/13 01:06:56 brian Exp $"; +static char rcsid[] = "$Id: auth.c,v 1.14 1997/04/15 07:00:32 danny Exp $"; #endif #include <stdio.h> @@ -536,14 +536,14 @@ ppplogin(user, passwd, msg, msglen) } /* - * Check that the user is not listed in /etc/ppp/ppp.disabled + * Check that the user is not listed in /etc/ppp/ppp.deny * and that the user's shell is listed in /etc/ppp/ppp.shells * if /etc/ppp/ppp.shells exists. */ - if (checkfile(_PATH_PPPDISABLED, user) == 1) { - syslog(LOG_WARNING, "upap user %s: account disabled in %s", - user, _PATH_PPPDISABLED); + if (checkfile(_PATH_PPPDENY, user) == 1) { + syslog(LOG_WARNING, "upap user %s: login denied in %s", + user, _PATH_PPPDENY); return (UPAP_AUTHNAK); } |