From: Paul Mackerras Date: Thu, 27 Nov 1997 06:07:48 +0000 (+0000) Subject: print name of peer in messages X-Git-Tag: RELEASE_2_3_6~153 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=8b667f223a1019915d0df5f35ed425de29c75be1 print name of peer in messages --- diff --git a/pppd/chap.c b/pppd/chap.c index b418f6f..189eb20 100644 --- a/pppd/chap.c +++ b/pppd/chap.c @@ -34,7 +34,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: chap.c,v 1.14 1997/04/30 05:51:08 paulus Exp $"; +static char rcsid[] = "$Id: chap.c,v 1.15 1997/11/27 06:07:48 paulus Exp $"; #endif /* @@ -586,9 +586,12 @@ ChapReceiveResponse(cstate, inp, id, len) } if (cstate->chal_interval != 0) TIMEOUT(ChapRechallenge, cstate, cstate->chal_interval); + syslog(LOG_NOTICE, "CHAP peer authentication succeeded for %s", + rhostname); } else { - syslog(LOG_ERR, "CHAP peer authentication failed"); + syslog(LOG_ERR, "CHAP peer authentication failed for remote host %s", + rhostname); cstate->serverstate = CHAPSS_BADAUTH; auth_peer_fail(cstate->unit, PPP_CHAP); }