[Dovecot] user_global_uid - tricky to set

Timo Sirainen tss at iki.fi
Tue Mar 6 16:55:25 EET 2007


On Thu, 2007-03-01 at 22:02 +0100, Alexej Davidov wrote:
> Hola!
> 
> Dovecot should serve virtual mail users. So I've set user_global_uid
> and user_global_gid in dovecot_ldap.conf to vmail/vmail. Also I've
> commented auth the user_attrs field. Still Dovecot tries to switch to
> the uid that is defined in the LDAP entry. 
> 
> It took me some time to figure out, that the only way to prevent this
> is to set
> user_attrs = foo=uid,bar=gid
> or something like this, so Dovecot doesn't have a chance to find the
> uid/gid. Still it will perform some LDAP lookups.
> 
> In my oppinion, Dovecot shouldn't try to get the uid/gid from LDAP if
> the user_attrs field is undefined.

Commenting out user_attrs is the same as setting it to the default
value. Setting "user_attrs =" should have worked. However if you don't
want userdb LDAP lookup at all, use userdb static instead.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070306/6111944a/attachment.pgp 


More information about the dovecot mailing list