2 Sep
2025
2 Sep
'25
12:04 a.m.
On 01/09/25, Daniel Botting via dovecot (dovecot@dovecot.org) wrote:
LDAP is currently used to lookup users and their relevant password in dovecot-ldap.conf.ext file, what I'm looking to do is lookup the ldap group they would belong to for the dovecot-acl file. I'll illustrate below:
dovecot-acl file example:
user=testuser lr
what I'd like to replace with is:
dovecot-acl file
group=ldap_user_group lr
Hi. I'm certainly no LDAP expert, but the Debian Trixie config for 2.4.x seems helpful. You can check it out here:
https://salsa.debian.org/sur5r/dovecot/-/blob/master/debian/conf/conf.d/auth...
I assume you can swap out 'user' in the example with 'group'?
passdb ldap { ... fields { user=%{ldap:uid} ... } }
Best wishes, Rory