Browse Source

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

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

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

@ -103,7 +103,7 @@ class Auth(BaseAuth):
userAttributeValue = conn.response[0]['attributes'][userAttribute] userAttributeValue = conn.response[0]['attributes'][userAttribute]
logger.debug("LDAP user DN: %s" % userDn) logger.debug("LDAP user DN: %s" % userDn)
if (not accessGroupFilter == None) and (not accessGroupAttribute == None):
if (not accessGroupFilter == "None") and (not accessGroupAttribute == "None"):
userMemberOf = conn.response[0]['attributes'][accessGroupAttribute] userMemberOf = conn.response[0]['attributes'][accessGroupAttribute]
userIsInAccessGroup = False userIsInAccessGroup = False


Loading…
Cancel
Save