12 Dec
2004
12 Dec
'04
1:18 p.m.
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@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@designit.com.au designIT