]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
auth: respect log_reject attribute with proxy
authorDaniele Rondina <geaaru@sabayonlinux.org>
Mon, 6 Apr 2020 10:10:07 +0000 (12:10 +0200)
committerAlan DeKok <aland@freeradius.org>
Mon, 6 Apr 2020 12:47:05 +0000 (08:47 -0400)
Avoid logging message ""Login incorrect (Home Server says so)" if
`auth_reject = no` is configured.

Signed-off-by: Daniele Rondina <geaaru@sabayonlinux.org>
src/main/auth.c

index a10097637b0038ea38c1a92368524853c6352d30..7facbcd6707a50fa911fae3fede0c79c6588fdc1 100644 (file)
@@ -481,9 +481,9 @@ int rad_authenticate(REQUEST *request)
                 *      done by the server, by rejecting them here.
                 */
                case PW_CODE_ACCESS_REJECT:
+                       request->reply->code = PW_CODE_ACCESS_REJECT;
                        rad_authlog("Login incorrect (Home Server says so)",
                                    request, 0);
-                       request->reply->code = PW_CODE_ACCESS_REJECT;
                        return RLM_MODULE_REJECT;
 
                default: