From bfcf711e774cd8c1e0e991e037fcd80f571ec314 Mon Sep 17 00:00:00 2001 From: Dennis Buchhorn Date: Wed, 6 Dec 2023 21:21:09 +0100 Subject: [PATCH] fix[__init__.py]: correct check if accessGroupFilter and accessGroupAttribute is not set --- radicale-auth-ldap/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radicale-auth-ldap/__init__.py b/radicale-auth-ldap/__init__.py index 3705b1e..23e207f 100644 --- a/radicale-auth-ldap/__init__.py +++ b/radicale-auth-ldap/__init__.py @@ -23,10 +23,10 @@ PLUGIN_CONFIG_SCHEMA = {"auth": { "value": None, "type": str}, "ldap_access_group_filter": { - "value": None, + "value": "None", "type": str}, "ldap_access_group_attribute": { - "value": None, + "value": "None", "type": str}}} class Auth(BaseAuth): @@ -61,7 +61,7 @@ class Auth(BaseAuth): logger.warning("LDAP: binddn credentials are invalid") return "" - if (not accessGroupFilter == None) and (not accessGroupAttribute == None): + if (not accessGroupFilter == "None") and (not accessGroupAttribute == "None"): logger.debug("LDAP access group filter: %s" % accessGroupFilter) logger.debug("LDAP access group attribute: %s" % accessGroupAttribute)