From 63b160c2b03ce5399dc2029181ca2e8174f6175d Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 25 Sep 2025 15:29:04 +0200 Subject: [PATCH] move evaluation of quirk for Authentik where it belongs, superseeds https://github.com/Kozea/Radicale/pull/1877 --- radicale/auth/ldap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/auth/ldap.py b/radicale/auth/ldap.py index 84dcee0b..ababe16a 100644 --- a/radicale/auth/ldap.py +++ b/radicale/auth/ldap.py @@ -89,8 +89,7 @@ class Auth(auth.BaseAuth): self._ldap_ignore_attribute_create_modify_timestamp = configuration.get("auth", "ldap_ignore_attribute_create_modify_timestamp") if self._ldap_ignore_attribute_create_modify_timestamp: - self.ldap3.utils.config._ATTRIBUTES_EXCLUDED_FROM_CHECK.extend(['createTimestamp', 'modifyTimestamp']) - logger.info("auth.ldap_ignore_attribute_create_modify_timestamp applied") + logger.info("auth.ldap_ignore_attribute_create_modify_timestamp will be applied") self._ldap_uri = configuration.get("auth", "ldap_uri") self._ldap_base = configuration.get("auth", "ldap_base") @@ -260,6 +259,8 @@ class Auth(auth.BaseAuth): def _login3(self, login: str, password: str) -> str: """Connect the server""" + if self._ldap_ignore_attribute_create_modify_timestamp: + self.ldap3.utils.config._ATTRIBUTES_EXCLUDED_FROM_CHECK.extend(['createTimestamp', 'modifyTimestamp']) try: logger.debug(f"_login3 {self._ldap_uri}, {self._ldap_reader_dn}") if self._use_encryption: