Skip to content

Commit da6bcb1

Browse files
committed
auth/ldap: Also fix-up LDAP
1 parent 979ab37 commit da6bcb1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

cmd/maddy/maddy.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
state_dir /tmp
3+
runtime_dir /tmp
4+
5+
smtp tcp://127.0.0.1:1234 {
6+
tls off
7+
auth ldap {
8+
base_dn "1"
9+
filter "2 "
10+
}
11+
hostname test
12+
deliver_to dummy
13+
}

internal/auth/ldap/ldap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (a *Auth) Configure(inlineArgs []string, cfg *config.Map) error {
5454

5555
cfg.Bool("debug", true, false, &a.log.Debug)
5656
cfg.Custom("tls_client", true, false, func() (interface{}, error) {
57-
return tls.Config{}, nil
57+
return &tls.Config{}, nil
5858
}, tls2.TLSClientBlock, &a.tlsCfg)
5959
cfg.Callback("urls", func(m *config.Map, node config.Node) error {
6060
a.urls = append(a.urls, node.Args...)

0 commit comments

Comments
 (0)