ldap-checker.py false positive fixed

run_ldap return code changed from False to None when errors are found to avoid false positives such as when connection fails.

Signed-off-by: Cauan <cauan@users.noreply.github.com>
This commit is contained in:
Cauan
2024-08-26 21:59:10 +10:00
committed by GitHub
parent f9d3caab63
commit 2de896cb49
+1 -1
View File
@@ -126,7 +126,7 @@ class NXCModule:
_, err = await ldapsClientConn.connect()
if err is not None:
context.log.fail(str(err))
return False
return None
_, err = await ldapsClientConn.bind()
if err is not None: