From 2de896cb4934098bd7b1cd54ce2249eb60cf304f Mon Sep 17 00:00:00 2001 From: Cauan Date: Mon, 26 Aug 2024 21:59:10 +1000 Subject: [PATCH] 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 --- nxc/modules/ldap-checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/modules/ldap-checker.py b/nxc/modules/ldap-checker.py index 34522358..dc76695a 100644 --- a/nxc/modules/ldap-checker.py +++ b/nxc/modules/ldap-checker.py @@ -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: