"Bernd Sontheimer" <[EMAIL PROTECTED]> wrote:
> But how can i influcence the chap-challenges sent as above. Or is
> that a bug? Sorry, i'm no programmer, so a look into the source
> doesn't help me really. Is that a bug or can i do anything?
It's a bug. You can try changing the source by going to
src/main/proxy.c, near the bottom of the file. Look for:
/*
* 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.
*/
} else if (pairfind(vps, PW_CHAP_PASSWORD) &&
pairfind(vps, PW_CHAP_CHALLENGE) == NULL) {
vp = paircreate(PW_CHAP_CHALLENGE, PW_TYPE_STRING);
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(&vps, vp);
and delete all of it (leaving the trailing '}' on an empty line)
Recompile, and see if the bug goes away.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html