[Dovecot] Mixing LDAP and static

Timo Sirainen tss at iki.fi
Thu Apr 17 16:34:09 EEST 2008

On Sat, 2008-04-12 at 22:37 +0200, Anders wrote:
> I want to read quota size from LDAP, but I have a static value for home. 
> How can I mix these?
> Right now, I have this LDAP configuration:
>   user_attrs = 
> uid=home=/var/mail/vhosts/%d/%n,gosaMailQuota=quota_rule=*:bytes=%$M
> which works fine, but looks up the uid attribute needlessly, and is not 
> scalable: I have to pick a different, always-existing LDAP attribute for 
> each static extra field that I want to set.
> Is there some LDAP configuration syntax like the SQL "SELECT '/var/...' 
> AS home" ?

Just drop the "uid", like: =home=/var/mail/..

-------------- 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/20080417/4f5a758b/attachment.bin 

More information about the dovecot mailing list