Config - Fixed default port

Should be 636 for plain TLS, not for STARTTLS.
This commit is contained in:
Emmanuel BENOîT 2021-12-14 09:26:00 +01:00
parent 44dc6fb1db
commit 2fef4d931d

View file

@ -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