[Dovecot] Variable similar to %u but providing the username changed by a database lookup?

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Fri Jul 5 17:27:53 EEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 5 Jul 2013, Axel Luttgens wrote:

> Variable %u may be used in dovecot.conf whenever the "full username" is needed.
>
> But the expansion of %u returns the username before a possible change performed thru a password or user database lookup (e.g., in the case of a SQL database, thru as "AS user" clause).

The doc http://wiki2.dovecot.org/AuthDatabase/SQL#User_database_lookups 
spells:

SELECT userid AS username

maybe, you override the wrong field?

Regards,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUdbX6V3r2wJMiz2NAQJeFwf/TNLtKu7lbykgc5ol7aVdLm2Xbt/ZPee7
a0eQTemS2YI2R51+u8jiPHG2YSNlFD2qU9I9/P/OlOAZmvV++FGrKR+1MVKL1Yqy
TxwmVKJ/DNNA0XNJuTkTpVshjgwH2HSsvJQ6EJv4qRlD3JUnOFMoGdtumtLoigJx
fPLH5OG6YswjOSyEL7p71H3Rit3J+nsHg9AVIWA5fHKNahO1MKT+BQxhpSj0lcDd
OhFmXrYPrjSY5TapBoldCRrtXyAJeFhx5AHUZjiBlICFF49bxHTDPSY+gQ4ktIyK
6mxbk9spmNPGgmWKWMWP8lckLXbj4YP/RgCxxDS8JeESmLHmp8YBog==
=Wunj
-----END PGP SIGNATURE-----


More information about the dovecot mailing list