On Tue, Jul 08, 2003 at 03:54:57PM +0200, Steffen Ullrich wrote:
>
> 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.
Try this instead (please let me know if this works for you, ASAP
if you can, so that this can get into 0.9):
Index: x99_rlm.c
===================================================================
RCS file: /source/radiusd/src/modules/rlm_x99_token/x99_rlm.c,v
retrieving revision 1.37
diff -u -r1.37 x99_rlm.c
--- x99_rlm.c 13 Nov 2002 04:21:59 -0000 1.37
+++ x99_rlm.c 16 Jul 2003 07:21:08 -0000
@@ -306,6 +306,9 @@
/* 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");
+ if (!auth_type_found)
+ pairadd(&request->config_items,
+ pairmake("Auth-Type", inst->name, T_OP_EQ));
return RLM_MODULE_OK;
}
@@ -440,10 +443,9 @@
request->reply->code = PW_ACCESS_CHALLENGE;
DEBUG("rlm_x99_token: Sending Access-Challenge.");
- /* TODO: support config-specific auth-type */
if (!auth_type_found)
pairadd(&request->config_items,
- pairmake("Auth-Type", "x99_token", T_OP_EQ));
+ pairmake("Auth-Type", inst->name, T_OP_EQ));
return RLM_MODULE_HANDLED;
}
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html