[Dovecot] Dsync replication with LDAP and auth_bind=yes

Michał Franczak michal.franczak at comarch.com
Sun Mar 2 11:20:09 UTC 2014


Hello,

I have working dovecot configuration with LDAP based authentication in 
Active Directory.
I'd like to use dsync replication but dovecot can't do user lookups.
Is it possible to configure replication in such architecture?
doveadm user '*'
Returns only one local dovecot user.

dovecot --version
2.2.10

My dovecot-ldap.conf look as follows:


hosts           = ad.domain.com:389
ldap_version    = 3
auth_bind       = yes
dn              = src_mail_ldap
dnpass          = somePass
base            = OU=users,DC=domain,DC=com
scope           = subtree
deref           = never
user_filter     = 
(&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter     = 
(&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = 
=home=/var/vmail/vmail1/%Ld/%Ln/Maildir/,=mail=maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/

Best Regards
-- 
Michal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2197 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140302/c8c61fc9/attachment.p7s>


More information about the dovecot mailing list