[Dovecot] %{ldap:nonExistantAttribut} (was Re: v2.2.alpha1 released)
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Thu Nov 8 11:21:30 EET 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 7 Nov 2012, Timo Sirainen 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,
The TODO file contains the snippet:
- multiple ldap values could be joined into one field with specified
separator (e.g. mail_access_groups=%{ldap:gidNumber:,})
Well, I did ignored the colon in front of the ','.
> %{ldap:attrName:default} would be simple to do. Attached patch to do it.
> Let me know if it works.
I applied it to v2.1. It works like charm, thanks :)
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUJt5mmoxLS8a3A9mAQJpRgf+JviFB7+za6bODz2eWdWCMeSy7GocD9Zc
VvmqlcRqCSgGD/37h6m6cyhJ9/XkUm+Z2dbGH5RaznIqEPcQ0GwlIcrkUzfvSSrv
ByMRSFDPpu1kWYC1/ieajUrIZTUvhxctpQMtIFkm2Vi6TusgXuTWQGgbf69sIJEF
COfPpCO6UYZFe96biNEE171wl+KpEeDBx8xwb4lu+tOXFNbCQEqUMe1kgF6Qda3i
cfnAIb+pU+ljYMMQbpuIBpA14i9GGsQAzd39HL3aFKqGq3WU54M8xOZqDfSeUGjh
ES/y4U20kbogfUZTUkbA7j3tO463RvCCvFjWh1/FvYLrouAVo2p43A==
=Kkac
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list