[Dovecot] Problem with LDAP and Dovecot

Karl Latiss karl at designit.com.au
Sun Dec 12 13:18:10 EET 2004


On Sun, 2004-12-12 at 14:56, Peter Clark wrote:
>     I am trying to set up Dovecot so that it uses LDAP, but I keep getting 
> this error message in /var/log/syslog:
> 
> Dec 12 03:38:17 mydomain dovecot-auth: LDAP: ldap_search() failed (filter 
> user_filter = (mail=user at mydomain.tld)): Bad search filter
> 
> Relevant configuration files:
> /etc/dovecot-ldap.conf:
> hosts = localhost
> dn = cn=dovecot,ou=sysAccounts,dc=mydomain,dc=tld
> dnpass = password
> ldap_version = 3
> base = ou=mailAccounts,dc=mydomain,dc=tld
> deref = never
> scope = subtree
> user_attrs = mail,,,,,
> user_filter = (mail=%u)
> pass_attrs = mail,userPassword
> pass_filter = user_filter = (mail=%u)

I don't think your pass_filter is correct. Mine (for example) is:

pass_filter = (&(objectClass=posixAccount)(mail=%u))

-- 
Karl Latiss <karl at designit.com.au>
designIT




More information about the dovecot mailing list