Skip to content

Commit

Permalink
auth: respect log_reject attribute with proxy
Browse files Browse the repository at this point in the history
Avoid logging message ""Login incorrect (Home Server says so)" if
`auth_reject = no` is configured.

Signed-off-by: Daniele Rondina <geaaru@sabayonlinux.org>
  • Loading branch information
Daniele Rondina authored and alandekok committed Apr 6, 2020
1 parent 9c36e20 commit 69eb74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 69eb74f

Please sign in to comment.