[PATCH] log identitied when they dont match

Phil Mayers p.mayers at imperial.ac.uk
Wed Jul 30 18:24:20 CEST 2008


This is a simple version of the patch, just logging the identities

---
  src/modules/rlm_eap/eap.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/rlm_eap/eap.c b/src/modules/rlm_eap/eap.c
index e9094c4..e947844 100644
--- a/src/modules/rlm_eap/eap.c
+++ b/src/modules/rlm_eap/eap.c
@@ -1025,7 +1025,7 @@ EAP_HANDLER *eap_handler(rlm_eap_t *inst, eap_packet_t **eap_packet_p,
  			*/
                         if (strncmp(handler->identity, vp->vp_strvalue,
  				   MAX_STRING_LEN) != 0) {
-                               radlog(L_ERR, "rlm_eap: Identity does not match User-Name.  Authentication failed.");
+                               radlog(L_ERR, "rlm_eap: Identity %s does not match User-Name %s.  Authentication failed.", handler->identity, vp->vp_strvalue);
                                 free(*eap_packet_p);
                                 *eap_packet_p = NULL;
                                 return NULL;
-- 
1.5.4.1




More information about the Freeradius-Users mailing list