sources/ldap: start_tls before binding but without reading server info

with read_server_info=True (default), this errors out on active directory

closes #3509 #1049

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-09-04 14:04:08 +02:00
parent fc6ed8e7f9
commit 12c318f0b1
1 changed files with 2 additions and 2 deletions

View File

@ -139,9 +139,9 @@ class LDAPSource(Source):
receive_timeout=LDAP_TIMEOUT, receive_timeout=LDAP_TIMEOUT,
) )
connection.bind()
if self.start_tls: if self.start_tls:
connection.start_tls() connection.start_tls(read_server_info=False)
connection.bind()
return connection return connection
class Meta: class Meta: