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:
parent
fc6ed8e7f9
commit
12c318f0b1
|
@ -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:
|
||||
|
|
Reference in New Issue