From bf112d6b5fe664e7c9fc8e3a1f745bec259d3761 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Fri, 7 Jun 2024 12:35:21 +0200 Subject: [PATCH] log also in case of "denyall" is selected, cosmetics --- radicale/auth/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radicale/auth/__init__.py b/radicale/auth/__init__.py index 08ec5ee0..dfc5f564 100644 --- a/radicale/auth/__init__.py +++ b/radicale/auth/__init__.py @@ -42,7 +42,9 @@ INTERNAL_TYPES: Sequence[str] = ("none", "remote_user", "http_x_remote_user", def load(configuration: "config.Configuration") -> "BaseAuth": """Load the authentication module chosen in configuration.""" if configuration.get("auth", "type") == "none": - logger.warn("No user authentication is selected (insecure)") + logger.warn("No user authentication is selected: '[auth] type=none' (insecure)") + if configuration.get("auth", "type") == "denyall": + logger.warn("All access is blocked by: '[auth] type=denyall'") return utils.load_plugin(INTERNAL_TYPES, "auth", "Auth", BaseAuth, configuration)