From 228bb7bd529dac6a97c7dd73cdbe0c12f1270fb4 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 9 Oct 2024 18:39:45 -0700 Subject: [PATCH] disable LDAP_BINARY if LDAP_ENABLED=False --- archivebox/plugins_auth/ldap/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/plugins_auth/ldap/apps.py b/archivebox/plugins_auth/ldap/apps.py index d993bdb0..f2dce29a 100644 --- a/archivebox/plugins_auth/ldap/apps.py +++ b/archivebox/plugins_auth/ldap/apps.py @@ -75,7 +75,7 @@ class LdapAuthPlugin(BasePlugin): hooks: List[InstanceOf[BaseHook]] = [ LDAP_CONFIG, - LDAP_BINARY, + *([LDAP_BINARY] if LDAP_CONFIG.LDAP_ENABLED else []), ]