From: Matthew Newton Date: Tue, 25 Sep 2012 21:42:26 +0000 (+0100) Subject: Move rad_postauth ACCEPT from rad_authenticate to request_finish X-Git-Tag: release_3_0_0_beta1~1682^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f03313da5ac4af88b9f350f7a7e07c9766837f1;p=thirdparty%2Ffreeradius-server.git Move rad_postauth ACCEPT from rad_authenticate to request_finish --- diff --git a/src/main/auth.c b/src/main/auth.c index b6215aac440..7b4cb2a7952 100644 --- a/src/main/auth.c +++ b/src/main/auth.c @@ -796,10 +796,5 @@ autz_redo: rad_authlog("Login OK", request, 1); } - /* - * Run the modules in the 'post-auth' section. - */ - result = rad_postauth(request); - return result; } diff --git a/src/main/process.c b/src/main/process.c index 53237de978c..80fc0f7008a 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -1087,6 +1087,10 @@ STATE_MACHINE_DECL(request_finish) if (vp) rad_postauth(request); } + if (request->reply->code == PW_AUTHENTICATION_ACK) { + rad_postauth(request); + } + /* * Send the reply here. */