我有一个 LDAP 服务器,它通过端口 636 上的 ldaps 接受请求。我已经将它用于我的许多应用程序,并且我希望我的 dovecot 服务器也使用它进行身份验证。
dovecot ldap 配置:
uris = ldaps://<<ldap-url>>:636
auth_bind = yes
dn = <<dn>>
dnpass = <<pw>>
ldap_version = 3
base = <<base>>
deref = never
scope = subtree
default_pass_scheme = SSHA
blocking=yes # apparently this sometimes helps, but not in this case
# user filter
#user_attrs = mailHomeDirectory=mail,mailStorageDirectory=mail,mailQuota=quota_rule=*:bytes=%$
user_attrs =
user_filter = (&(objectClass=mailUser)(maildrop=%u))
# password filter
#pass_attrs = maildrop=user,userPassword=password
pass_attrs = userPassword=password
pass_filter = (&(objectClass=mailUser)(maildrop=%u))
#iterate_attrs = mail=user
#iterate_filter = (objectClass=mailUser)
LDAP 服务器已启动并正在运行,我可以使用 JXplorer 配置的 pass 和 base 绑定到配置的 dn,但不能使用 dovecot。
相关日志部分:
dovecot: auth-worker(15177): Error: LDAP: Can't connect to server: ldaps://ldap.ropi.dev:636