From 9ef2ca6e48d55942795ddc2e6feed60a25a4e047 Mon Sep 17 00:00:00 2001 From: Bryan De Houwer Date: Tue, 8 Aug 2023 16:25:21 +0200 Subject: [PATCH] Fix ldap checker bug --- cme/modules/ldap-checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cme/modules/ldap-checker.py b/cme/modules/ldap-checker.py index 98ea6597..0e1c9e4e 100644 --- a/cme/modules/ldap-checker.py +++ b/cme/modules/ldap-checker.py @@ -170,7 +170,7 @@ class CMEModule: context.log.fail("Connection fail, exiting now") exit() - if DoesLdapsCompleteHandshake(connection.domain) == True: + if DoesLdapsCompleteHandshake(connection.host) == True: target = MSLDAPTarget(connection.host, 636, UniProto.CLIENT_SSL_TCP, hostname=connection.hostname, domain=connection.domain, dc_ip=connection.domain) ldapsChannelBindingAlwaysCheck = asyncio.run(run_ldaps_noEPA(target, credential)) target = MSLDAPTarget(connection.host, hostname=connection.hostname, domain=connection.domain, dc_ip=connection.domain)