From 2fef4d931d5674603691294bbcdef6d409bc97b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Tue, 14 Dec 2021 09:26:00 +0100 Subject: [PATCH] Config - Fixed default port Should be 636 for plain TLS, not for STARTTLS. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 6706ef2..bb853d8 100644 --- a/config.go +++ b/config.go @@ -188,7 +188,7 @@ func (c *tLdapServerConfig) ApplyDefaults(dft tLdapConnectionConfig) { // Default port based on TLS mode if c.Port == 0 { - if c.TLS == "starttls" { + if c.TLS == "yes" { c.Port = 636 } else { c.Port = 389