Re: USERDB/LDAP fails if attribute doesn't exist

2025-07-07 Thread Ricardo Machini Barbosa via dovecot
Same problem = here. I would like = to set some default value when attribute is not found on = LDAP. Luis, did you find out how to solve = it? Regards, Ricardo ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send a

Re: USERDB/LDAP fails if attribute doesn't exist

2025-03-18 Thread luis.neapolis--- via dovecot
Thank you very much Aki! It works! Maybe there is an error in the documentation at: https://doc.dovecot.org/main/core/config/auth/databases/ldap.html where I found: "It is possible to give default values to nonexistent attributes by using e.g. %{ldap:userDomain:example.com} where if userDomain

Re: USERDB/LDAP fails if attribute doesn't exist

2025-03-18 Thread Aki Tuomi via dovecot
Thanks for pointing this out, we'll fix it. Aki > On 18/03/2025 11:14 EET luis.neapolis--- via dovecot > wrote: > > > Thank you very much Aki! It works! > > Maybe there is an error in the documentation at: > > https://doc.dovecot.org/main/core/config/auth/databases/ldap.html > > where I f

Re: USERDB/LDAP fails if attribute doesn't exist

2025-03-17 Thread Aki Tuomi via dovecot
Use default function: %{ldap:quota_over|default('')} Aki > On 18/03/2025 08:26 EET luis.neapolis--- via dovecot > wrote: > > > Hello, > I have just upgraded to 2.4 dovecot version from 2.3.x. I converted the > configurations and now I have the following problem: > > I have a userdb with L

USERDB/LDAP fails if attribute doesn't exist

2025-03-17 Thread luis.neapolis--- via dovecot
Hello, I have just upgraded to 2.4 dovecot version from 2.3.x. I converted the configurations and now I have the following problem: I have a userdb with LDAP: userdb ldap { driver = ldap ldap_filter = (&(objectClass=Emails) (mail=%{user}) ) fields { quota_rule = %{ldap:quota}

USERDB/LDAP fails if attribute doesn't exist

2025-03-17 Thread luis.neapolis--- via dovecot
Hello, I have just upgraded to 2.4 dovecot version from 2.3.x. I converted the configurations and now I have the following problem: I have a userdb with LDAP: userdb ldap { driver = ldap ldap_filter = (&(objectClass=Emails) (mail=%{user}) ) fields { quota_rule = %{ldap:quota}