diff --git a/authentik/sources/ldap/models.py b/authentik/sources/ldap/models.py index a6cb1a283..166131cdc 100644 --- a/authentik/sources/ldap/models.py +++ b/authentik/sources/ldap/models.py @@ -139,9 +139,9 @@ class LDAPSource(Source): receive_timeout=LDAP_TIMEOUT, ) - connection.bind() if self.start_tls: - connection.start_tls() + connection.start_tls(read_server_info=False) + connection.bind() return connection class Meta: