Re: Bug report: filter `default` in LDAP context does not suppress error logging

Aki Tuomi via dovecot <[email protected]> Tue, 7 Apr 2026 08:26:05 +0300 (EEST)
Newsgroups gmane.mail.imap.dovecot
Message-ID <788053752.5513.1775539565680@appsuite-pro-sync-core-mw-groupware-0.appsuite-pro-sync-core-mw-hazelcast-headless.appsuite-dev.svc.cluster.local>
> On 03/04/2026 22:36 EEST Johannes Nohl via dovecot <[email protected]> wrote:
> 
>  
> Bug report: Expanding variables with filter `default` in LDAP context does not suppress error logging if LDAP attribute is missing. 
> 
> Expected behaviour: Missing LDAP attribute does not throw an error. Example `nologin = %{ldap:missingAttribute | default}` 
> 
> Details: 

Hi!

We actually have a test for this, that tests this exact thing you are seeing, so I am bit wondering how this can happen. This test has been here since 2.4.0, and it passes with 2.4 all the time.

I even copypasted your passdb block as-is and I can't get error you're seeing, so there is something else going on. Can you please send me your full doveconf so I can test it properly?

Aki

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]