Browse Source

fix[__init__.py]: add password is empty check

master v0.3
Dennis Buchhorn 9 months ago
parent
commit
a1b2656122
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      radicale-auth-ldap/__init__.py

+ 5
- 0
radicale-auth-ldap/__init__.py View File

@ -125,6 +125,11 @@ class Auth(BaseAuth):
accessGroupFilter = self.configuration.get("auth", "ldap_access_group_filter")
accessGroupAttribute = self.configuration.get("auth", "ldap_access_group_attribute")
if password == "":
logger.error("LDAP: user password is mandatory")
return ""
if self.grantedUserAccessCache is not None:
logger.info("LDAP: check if user is cached")


Loading…
Cancel
Save