Skip to content

Commit e7acdc7

Browse files
authored
Merge pull request Pennyw0rth#409 from cauan/patch-2
ldap-checker.py Catch connection errors
2 parents 62496a3 + 34ac854 commit e7acdc7

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)