os: linux
version: freeradius-0.8.1
 
in async mode, when the authorize code gets the reply with the challenge
in the state it returns successfully but does not set the Auth-Type,
so that the authenticate code (which checks the response against the 
challenge) will not be executed. The following patch should fix this.

diff -ruw freeradius-0.8.1/src/modules/rlm_x99_token/x99_rlm.c 
freeradius-0.8.1-patched/src/modules/rlm_x99_token/x99_rlm.c
--- freeradius-0.8.1/src/modules/rlm_x99_token/x99_rlm.c        2002-11-13 
05:21:59.000000000 +0100
+++ freeradius-0.8.1-patched/src/modules/rlm_x99_token/x99_rlm.c        2003-07-08 
12:41:28.000000000 +0200
@@ -306,6 +306,8 @@
     /* The State attribute will be present if this is a response. */
     if (pairfind(request->packet->vps, PW_STATE) != NULL) {
        DEBUG("rlm_x99_token: autz: Found response to access challenge");
+       pairadd(&request->config_items,
+               pairmake("Auth-Type", "x99_token", T_OP_EQ));
        return RLM_MODULE_OK;
     }




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to