我build立了邮件服务器AD + Postfix + Dovecot + Kerberos
这只适用于一个域的工作在属性[email protected],在otherMailbox = vasya @ otherdoamin.com,petya @ another.net
configuration文件:
Postfix ldap-users.cf
server_host = server search_base = dc=cn,dc=energy version = 3 bind = yes bind_dn = [email protected] bind_pw = passwd query_filter = (&(objectCategory=person)(|(mail=%s)(otherMailbox=%s))(!(userAccountControl=514))) result_attribute = mail otherMailbox result_format = %d/%u
dovecot的-的ldap.conf
hosts = server:3268 debug_level = 2 dn = ldapmail dnpass = passwd tls = no auth_bind = yes auth_bind_userdn = cn.energy\%u ldap_version = 3 base = dc=cn, dc=energy deref = searching scope = subtree user_attrs = mail=user,uid=vmail, gid=vmail user_filter = (&(objectclass=person)(|(sAMAccountName=%n)(otherMailbox=%n))(!(userAccountControl=514))) default_pass_scheme = CRYPT
postconf:
属性邮件
postmap -q [email protected] ldap:/etc/postfix/ldap-users.cf another.net/petya,otherdoamin.com/vasya,[email protected]/ross
属性otherMailbox
postmap -q [email protected] ldap:/etc/postfix/ldap-users.cf another.net/petya,otherdoamin.com/vasya,[email protected]/ross
filtersearch并find正确的。 只是不工作result_format ???
例:
another.net/petya,otherdoamin.com/vasya,[email protected]/ross
这个名字一个目录! 嗯,鸽舍没有find它
非常感谢您的帮助。
是你的问题,你的后缀ldap查询的作品,但你的鸽舍ldap查询不?
那么你可能仔细看看你在dovecot-ldap.conf中的user_attrs的映射。 您可以在user_attrs指定ldap-attribute = dovecot-attribute 。 这里可能有些问题,因为dovecot不知道名为vmail 1,2的属性。 看到: