Windows Vista doing PEAP

King, Michael MKing at bridgew.edu
Fri Oct 20 17:01:49 CEST 2006


Use this one if the one on the website doesn't work for you

Index: src/modules/rlm_eap/rlm_eap.c
===================================================================
RCS file: /source/radiusd/src/modules/rlm_eap/rlm_eap.c,v
retrieving revision 1.26.2.1.2.1
diff -u -r1.26.2.1.2.1 rlm_eap.c
--- src/modules/rlm_eap/rlm_eap.c       6 Feb 2006 16:23:52 -0000
1.26.2.1.2.1
+++ src/modules/rlm_eap/rlm_eap.c       18 Oct 2006 21:15:45 -0000
@@ -338,6 +338,7 @@
         *      We are done, wrap the EAP-request in RADIUS to send
         *      with all other required radius attributes
         */
+       DEBUG2("VISTA[%s:%d]: here",  __func__, __LINE__);
        rcode = eap_compose(handler);

        /*
@@ -515,6 +516,7 @@
                 *      We are done, wrap the EAP-request in RADIUS to
send
                 *      with all other required radius attributes
                 */
+               DEBUG2("VISTA[%s:%d]: here",  __func__, __LINE__);
                rcode = eap_compose(handler);

                /*
Index: src/modules/rlm_eap/eap.c
===================================================================
RCS file: /source/radiusd/src/modules/rlm_eap/eap.c,v
retrieving revision 1.52.4.1
diff -u -r1.52.4.1 eap.c
--- src/modules/rlm_eap/eap.c   6 Feb 2006 16:23:49 -0000       1.52.4.1
+++ src/modules/rlm_eap/eap.c   18 Oct 2006 21:15:45 -0000
@@ -1,4 +1,4 @@
-/*
+ /*
  * eap.c    rfc2284 & rfc2869 implementation
  *
  * Version:     $Id: eap.c,v 1.52.4.1 2006/02/06 16:23:49 nbk Exp $
@@ -382,7 +382,10 @@
        eap_packet_t    *hdr;
        uint16_t total_length = 0;

-       if (reply == NULL) return EAP_INVALID;
+       if (reply == NULL) {
+         DEBUG2("VISTA[%s:%d]: eap_wireformat invalid",   __func__,
__LINE__);
+         return EAP_INVALID;
+       }

        total_length = EAP_HEADER_LEN;
        if (reply->code < 3) {
@@ -469,6 +472,8 @@
                 *      mentioned restriction.
                 */
                reply->id = handler->eap_ds->response->id;
+               DEBUG2("VISTA[%s:%d]: reply->id %d",  __func__,
__LINE__, reply->id);
+               DEBUG2("VISTA[%s:%d]: reply->code %d",   __func__,
__LINE__,reply->code);

                switch (reply->code) {
                        /*
@@ -506,16 +511,20 @@
         *      that the TTLS and PEAP modules can call it to do most
         *      of their dirty work.
         */
+       DEBUG2("VISTA[%s:%d]: eap->request->code %d",   __func__,
__LINE__, eap_ds->request->code);
+       DEBUG2("VISTA[%s:%d]: eap->request->type.type %d",   __func__,
__LINE__, eap_ds->request->type.type);
+       DEBUG2("VISTA[%s:%d]: handler->eap_type %d",   __func__,
__LINE__, handler->eap_type);
+
        if (((eap_ds->request->code == PW_EAP_REQUEST) ||
             (eap_ds->request->code == PW_EAP_RESPONSE)) &&
            (eap_ds->request->type.type == 0)) {
                rad_assert(handler->eap_type >= PW_EAP_MD5);
                rad_assert(handler->eap_type <= PW_EAP_MAX_TYPES);
+               DEBUG2("VISTA[%s:%d]: Setting EAP type",   __func__,
__LINE__);

                eap_ds->request->type.type = handler->eap_type;
        }

-
        if (eap_wireformat(reply) == EAP_INVALID) {
                return RLM_MODULE_INVALID;
        }
@@ -598,6 +607,8 @@
                break;
        }

+       DEBUG2("VISTA]: rcode %d", rcode);
+
        return rcode;
 } 





More information about the Freeradius-Users mailing list