[Dovecot] Problem with ldap / quotas

Timo Sirainen tss at iki.fi
Tue Feb 22 11:30:32 EET 2011


Auth binding is done ONLY for passdb lookup. After that it's unbound.
Userdb lookups can't do auth binding, because they don't know the
password. So userdb lookups bind to the "dn" setting to do the lookup.
You need to set "dn" setting.

On Tue, 2011-02-22 at 11:07 +0200, Nikolaos Milas wrote:
> Thank you Timo,
> 
> dovecot-ldap.conf works fine - obviously thanks to auth_bind_userdn, so 
> it authenticates as the binding user:
> 
>     auth_bind_userdn = uid=%u,ou=people,dc=example,dc=com
> 
> I've tried to use a similar configuration (using auth_bind_userdn) in 
> the new configuration in dovecot-usrdb-ldap.conf and in 
> dovecot-passdb-ldap.conf but, as I described, it doesn't work.
> 
> So, the question is what may be wrong in dovecot-usrdb-ldap.conf 
> (dovecot-passdb-ldap.conf is identical).
> 
> Thanks again,
> Nick
> 
> 
> On 22/2/2011 10:51 πμ, Timo Sirainen wrote:
> > On Mon, 2011-02-21 at 22:02 +0200, Nikolaos Milas wrote:
> >
> >> I am trying to enable per user quotas, but I get the following error:
> >>
> >>      Feb 18 23:59:20 vmail dovecot: auth(default):
> >> ldap(tester,10.10.100.150): ldap_search((uid=tester)) failed: No such object
> >>
> >> It seems as if ldapsearch for username/password won't work with my new
> >> settings, but I can't find why.
> > Your dovecot-ldap.conf has no dn or dnpass settings, so it's doing the
> > userdb lookups anonymously. My guess is that won't work.
> >
> >
> >
> 




More information about the dovecot mailing list