Skip to content

Commit

Permalink
Add Dovecot userdb request acceptance in monitoring.lua
Browse files Browse the repository at this point in the history
This update adds a conditional block for accepting Dovecot userdb requests in the monitoring filter script. It allows the request if the request is authenticated and no_auth is true, which further refines the criteria for accepting or rejecting requests.

Signed-off-by: Christian Roessner <c@roessner.co>
  • Loading branch information
Christian Roessner committed Jul 11, 2024
1 parent 336a803 commit b64fd92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/lua-plugins.d/filters/monitoring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,10 @@ function nauthilus_call_filter(request)
return nauthilus.FILTER_ACCEPT, nauthilus.FILTER_RESULT_OK
end

-- Dovecot userdb request
if request.authenticated and request.no_auth then
return nauthilus.FILTER_ACCEPT, nauthilus.FILTER_RESULT_OK
end

return nauthilus.FILTER_REJECT, nauthilus.FILTER_RESULT_OK
end

0 comments on commit b64fd92

Please sign in to comment.