The ldap-auth and ldap-auth-advanced plugins in Kong Gateway Enterprise and Kong AI Gateway key their credential cache without the TLS settings, allowing a man-in-the-middle attacker to have credentials validated against a spoofed LDAP server despite certificate verification being enabled.