Browse Source

fix[__init__.py]: correct check if accessGroupFilter and accessGroupAttribute is not set

pull/1/head
Dennis Buchhorn 10 months ago
parent
commit
bfcf711e77
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      radicale-auth-ldap/__init__.py

+ 3
- 3
radicale-auth-ldap/__init__.py View File

@ -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)


Loading…
Cancel
Save