Skip to content

Commit 2de896c

Browse files
authored
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>
1 parent f9d3caa commit 2de896c

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
@@ -126,7 +126,7 @@ async def run_ldap(target, credential):
126126
_, err = await ldapsClientConn.connect()
127127
if err is not None:
128128
context.log.fail(str(err))
129-
return False
129+
return None
130130

131131
_, err = await ldapsClientConn.bind()
132132
if err is not None:

0 commit comments

Comments
 (0)