From 884c2bd0e9c56e4fb4ead327b939a31bbbce4d9a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 24 Aug 2021 13:03:19 +0200 Subject: [PATCH] root: fix missing ldap backend Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 08dc5697b..19c876fe0 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -32,6 +32,7 @@ from authentik.core.middleware import structlog_add_request_id from authentik.lib.config import CONFIG from authentik.lib.logging import add_process_id from authentik.lib.sentry import before_send +from authentik.stages.password import BACKEND_APP_PASSWORD, BACKEND_INBUILT, BACKEND_LDAP def j_print(event: str, log_level: str = "info", **kwargs): @@ -73,8 +74,9 @@ LANGUAGE_COOKIE_NAME = f"authentik_language{_cookie_suffix}" SESSION_COOKIE_NAME = f"authentik_session{_cookie_suffix}" AUTHENTICATION_BACKENDS = [ - "authentik.core.auth.InbuiltBackend", - "authentik.core.auth.TokenBackend", + BACKEND_INBUILT, + BACKEND_APP_PASSWORD, + BACKEND_LDAP, "guardian.backends.ObjectPermissionBackend", ]