]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move rad_postauth ACCEPT from rad_authenticate to request_finish
authorMatthew Newton <mcn4@leicester.ac.uk>
Tue, 25 Sep 2012 21:42:26 +0000 (22:42 +0100)
committerMatthew Newton <mcn4@leicester.ac.uk>
Tue, 25 Sep 2012 21:42:26 +0000 (22:42 +0100)
src/main/auth.c
src/main/process.c

index b6215aac4407238d39cc0f131c58c745ae636abd..7b4cb2a7952a1a9730b17cfdea7ed89b55f64094 100644 (file)
@@ -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;
 }
index 53237de978cc128d7744c547e1dafce65c9e970e..80fc0f7008a31d8af8a51869c1f130f2ff6bf0d1 100644 (file)
@@ -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.
         */