Config - Fixed default port
Should be 636 for plain TLS, not for STARTTLS.
This commit is contained in:
parent
44dc6fb1db
commit
2fef4d931d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue