At 08:35 PM 11/15/2001 -0500, you wrote:
> Umm... 'doc/DIFFS'? To finish this thread (hopefully) here's the diff, and CC'd to [EMAIL PROTECTED] Description of Patch: This patch simply adds variable CHAP_CHALLENGE to be passed as a var when authing via external scripts, without it the CHAP_CHALLENGE is not sent. This patch sends the var CHAP_CHALLENGE in hex code which is the only usable method I can find for external scripts. --- src/modules/rlm_preprocess/rlm_preprocess.c.orig Thu Nov 15 17:42:52 2001 +++ src/modules/rlm_preprocess/rlm_preprocess.c Wed Nov 14 17:09:58 2001 @@ -644,6 +644,24 @@ add_nas_attr(request); hints_setup(data->hints, request); + + /* + * If there is no PW_CHAP_CHALLENGE attribute but there + * is a PW_CHAP_PASSWORD we need to add it since we can't + * use the request authenticator anymore - we changed it. + */ + if (pairfind(request->packet->vps, PW_CHAP_PASSWORD) && + pairfind(request->packet->vps, PW_CHAP_CHALLENGE) == NULL) { + VALUE_PAIR *vp; + vp = paircreate(PW_CHAP_CHALLENGE, PW_TYPE_OCTETS); + if (!vp) { + radlog(L_ERR|L_CONS, "no memory"); + exit(1); + } + vp->length = AUTH_VECTOR_LEN; + memcpy(vp->strvalue, request->packet->vector, AUTH_VECTOR_LEN); + pairadd(&request->packet->vps, vp); + } if (huntgroup_access(data->huntgroups, request->packet->vps) != RLM_MODULE_OK) { radlog(L_AUTH, "No huntgroup access: [%s] (%s)", - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html