From 39424839c5d51b592c4106ba0602ca2fe5639f84 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 28 Dec 2022 21:29:36 +0100 Subject: [PATCH] outposts/ldap: only use common cert if cert is configured, correctly Signed-off-by: Jens Langhammer --- internal/outpost/ldap/ldap_tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/outpost/ldap/ldap_tls.go b/internal/outpost/ldap/ldap_tls.go index e14e7cb01..67b464645 100644 --- a/internal/outpost/ldap/ldap_tls.go +++ b/internal/outpost/ldap/ldap_tls.go @@ -24,7 +24,7 @@ func (ls *LDAPServer) getCertificates(info *tls.ClientHelloInfo) (*tls.Certifica } return provider.cert, nil } - if provider.certUUID != ls.providers[0].certUUID && provider.cert != nil { + if provider.certUUID != ls.providers[0].certUUID || provider.cert == nil { allIdenticalCerts = false } }