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 []), ]