summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/pap.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-05-16 13:34:20 +0000
committerbrian <brian@FreeBSD.org>2002-05-16 13:34:20 +0000
commit6efbe1505f2862ee9de549b2ed5252e375a3b53b (patch)
tree61085385dc884aed87c0b6e9d5dbba17a948e111 /usr.sbin/ppp/pap.c
parent40c0cc2b5fee42c3b04f06444985f18b2b999eb2 (diff)
downloadFreeBSD-src-6efbe1505f2862ee9de549b2ed5252e375a3b53b.zip
FreeBSD-src-6efbe1505f2862ee9de549b2ed5252e375a3b53b.tar.gz
Handle MS-CHAPv2 authentication correctly via the RADIUS server (if it's
configured). Handle internal failures in radius_Authenticate() correctly. Bump the ppp version number. This doesn't yet work with MPPE. More will follow. Sponsored by: Mozoon
Diffstat (limited to 'usr.sbin/ppp/pap.c')
-rw-r--r--usr.sbin/ppp/pap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ppp/pap.c b/usr.sbin/ppp/pap.c
index bc43f5d..c604831 100644
--- a/usr.sbin/ppp/pap.c
+++ b/usr.sbin/ppp/pap.c
@@ -264,10 +264,11 @@ pap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
key[klen] = '\0';
#ifndef NORADIUS
- if (*bundle->radius.cfg.file)
- radius_Authenticate(&bundle->radius, authp, authp->in.name,
- key, strlen(key), NULL, 0);
- else
+ if (*bundle->radius.cfg.file) {
+ if (!radius_Authenticate(&bundle->radius, authp, authp->in.name,
+ key, strlen(key), NULL, 0, NULL, 0))
+ pap_Failure(authp);
+ } else
#endif
if (auth_Validate(bundle, authp->in.name, key, p))
pap_Success(authp);
OpenPOWER on IntegriCloud