[Dovecot] %{ldap:nonExistantAttribut} (was Re: v2.2.alpha1 released)
Timo Sirainen
tss at iki.fi
Wed Nov 7 18:01:25 EET 2012
On 5.11.2012, at 20.58, Steffen Kaiser wrote:
> http://wiki2.dovecot.org/AuthDatabase/LDAP/Userdb?highlight=(%25{ldap)
>
> is the only reference I found so far and the TODO file.
>
> If the attribute does not exist, there should be a default value, you can specify, e.g.: %{ldap:attrName[,]:default value} . [,] the optional delimiter from the TODO.
Where do you see "," as optional delimiter? But yeah, %{ldap:attrName:default} would be simple to do. Attached patch to do it. Let me know if it works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldap.diff
Type: application/octet-stream
Size: 1713 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20121107/ce3e05b4/attachment.obj>
-------------- next part --------------
> Or if the attribute is missing, the rule is ignored.
Hmm. What if there are two attributes and one of them exists and the other one doesn't?..
More information about the dovecot
mailing list