[Dovecot] Quotas from LDAP

Sven Hartge sven at svenhartge.de
Wed Feb 23 22:28:04 EET 2011


Timo Sirainen <tss at iki.fi> wrote:
> On 23.2.2011, at 1.55, Sven Hartge wrote:

>> Given the following object:
>> 
>> dn: uid=foo,ou=bar
>> quotaBytes: 100000000
>> quotaBytes: 10000000
>> 
>> What happens with
>> 
>> user_attrs = homeDirectory=home,quotaBytes=quota_rule=*:bytes=%$
>> 
>> in this case?

> In multi-value attributes Dovecot uses only the first one and ignores
> the rest. I haven't spent much time thinking over this, so maybe it
> should give an error instead. Or a warning.

Courier warns if it discovers multiple values where only one should be.
As far as using only the first value is safe and does not lead to
ambiguities, this is the way to go, IMHO.

But dovecot should print the value it uses in the log, as some LDAP
implementations I have seend return the last value from a multi-valued
attribute as the first one.

"warn: multiple values found for $attribute_name, using value $value"

Grüße,
Sven.

-- 
Sig lost. Core dumped.



More information about the dovecot mailing list