diff options
author | brian <brian@FreeBSD.org> | 2002-05-10 03:11:35 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-05-10 03:11:35 +0000 |
commit | 1947582c12aeca5e9e4746994b70a33ccd12ad69 (patch) | |
tree | 0a77e3e35dbd7ef74d395bc1b44948669a61c015 /usr.sbin/ppp/pap.c | |
parent | a361afdafe8b37330c5b031706e2dfc480700962 (diff) | |
download | FreeBSD-src-1947582c12aeca5e9e4746994b70a33ccd12ad69.zip FreeBSD-src-1947582c12aeca5e9e4746994b70a33ccd12ad69.tar.gz |
Add support for MS-CHAP authentication via a RADIUS server.
Add support for Reply-Message and MS-CHAP-Error.
Sponsored by: Monzoon
Diffstat (limited to 'usr.sbin/ppp/pap.c')
-rw-r--r-- | usr.sbin/ppp/pap.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/ppp/pap.c b/usr.sbin/ppp/pap.c index c2bbb36..d4a2a65 100644 --- a/usr.sbin/ppp/pap.c +++ b/usr.sbin/ppp/pap.c @@ -143,10 +143,17 @@ SendPapCode(struct authinfo *authp, int code, const char *message) static void pap_Success(struct authinfo *authp) { + struct bundle *bundle = authp->physical->dl->bundle; + datalink_GotAuthname(authp->physical->dl, authp->in.name); - SendPapCode(authp, PAP_ACK, "Greetings!!"); +#ifndef NORADIUS + if (*bundle->radius.cfg.file && bundle->radius.repstr) + SendPapCode(authp, PAP_ACK, bundle->radius.repstr); + else +#endif + SendPapCode(authp, PAP_ACK, "Greetings!!"); authp->physical->link.lcp.auth_ineed = 0; - if (Enabled(authp->physical->dl->bundle, OPT_UTMP)) + if (Enabled(bundle, OPT_UTMP)) physical_Login(authp->physical, authp->in.name); if (authp->physical->link.lcp.auth_iwait == 0) |