diff options
author | brian <brian@FreeBSD.org> | 1999-01-29 22:46:31 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-01-29 22:46:31 +0000 |
commit | e71381fcd931491f4ac05f2df28732f51b735745 (patch) | |
tree | 38e94b672d4ff97b88679b5c575054720fee2983 /usr.sbin/ppp/radius.c | |
parent | fd44edb284ede72a5a37bfc4b35300bb7fda0cef (diff) | |
download | FreeBSD-src-e71381fcd931491f4ac05f2df28732f51b735745.zip FreeBSD-src-e71381fcd931491f4ac05f2df28732f51b735745.tar.gz |
o Send a CHAP challenge of 16 random digits when RADIUS is
configured. This isn't strictly necessary according to the
rfc, but it's suggested there....
o Don't forget to include our authname when sending a
CHAP challenge when RADIUS is configured.
o Don't supply the ``16'' representing the chap answer
length to radius_Authenticate() - libradius does this
for us.
o When we successfully authenticate via radius_Authenticate(),
continue with datalink_AuthOk() as expected.
Sponsored by: Internet Business Solutions Ltd., Switzerland
Diffstat (limited to 'usr.sbin/ppp/radius.c')
-rw-r--r-- | usr.sbin/ppp/radius.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/radius.c b/usr.sbin/ppp/radius.c index 70611e4..b60605a 100644 --- a/usr.sbin/ppp/radius.c +++ b/usr.sbin/ppp/radius.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id:$ + * $Id: radius.c,v 1.1 1999/01/28 01:56:34 brian Exp $ * */ @@ -265,10 +265,11 @@ radius_Authenticate(struct radius *r, struct bundle *bundle, const char *name, return 0; } + rad_close(h); + r->valid = 1; log_Printf(LogPHASE, "radius: SUCCESS\n"); - rad_close(h); - return r->valid = 1; + return 1; } void |