Fix ldap checker bug

This commit is contained in:
Bryan De Houwer
2023-08-08 16:25:21 +02:00
parent 790452e227
commit 9ef2ca6e48
+1 -1
View File
@@ -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)