> On 08/12/2021 22:07 ??????? ?????? <mail at eugene.su> wrote:
>
>
> Hi, dear developers!
>
> I have two passdb sections. The first one is PostgreSQL and the second one
is LDAP.
> In the first passdb (SQL) I wrote ?password_query? with ?...
'uid=life,is=good' AS "dn" ...? part.
> When I run ?doveadm auth test username? it shows correct variable value in
?extra fields: dn=uid=life,is=good?. Awesome.
>
> In the second passdb (LDAP) I wrote ?auth_bind_userdn = %{passdb:dn}?. And
here comes the problem.
>
> Wireshark shows bindRequest as ?uid\3Dlife\2Cis\3Dgood?. This is an
unexpected behavior.
>
> Why Dovecot in LDAP request ?=? replaces with ?\3D? and ?,? replaces with
?\2C?? How can I avoid such variable expand behavior?
>
> Best.
For safety reasons. If you can return it as life.is.good you can write
auth_bind_userddn = uid=%D{passdb:dn}
See https://doc.dovecot.org/configuration_manual/config_file/config_variables/
Aki