Skip to content

Commit 34ac854

Browse files
authored
ldap-checker.py Catch connection errors
Socket connection moved into the try/catch to catch connection errors. Signed-off-by: Cauan <cauan@users.noreply.github.com>
1 parent f9d3caa commit 34ac854

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/ldap-checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def DoesLdapsCompleteHandshake(dcIp):
9999
do_handshake_on_connect=False,
100100
suppress_ragged_eofs=False,
101101
)
102-
ssl_sock.connect((dcIp, 636))
103102
try:
103+
ssl_sock.connect((dcIp, 636))
104104
ssl_sock.do_handshake()
105105
ssl_sock.close()
106106
return True

0 commit comments

Comments
 (0)