Skip to content

Commit 9ca183d

Browse files
authored
Merge pull request Pennyw0rth#743 from Pennyw0rth/neff-fix-cbt-check
Fix conn reset error on windows if dc doesnt have tls cert
2 parents f227432 + 79b6c7a commit 9ca183d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def check_ldaps_cbt(self):
276276
self.logger.debug(f"LDAPSessionError while checking for channel binding requirements (likely NTLM disabled): {e!s}")
277277
except SysCallError as e:
278278
self.logger.debug(f"Received SysCallError when trying to enumerate channel binding support: {e!s}")
279-
if e.args[1] == "ECONNRESET":
279+
if e.args[1] in ["ECONNRESET", "WSAECONNRESET"]:
280280
self.cbt_status = "No TLS cert"
281281
else:
282282
raise

0 commit comments

Comments
 (0)