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-ldap.conf.ext?ref_type=heads

I assume you can swap out 'user' in the example with 'group'?

  passdb ldap {
    ...
    fields {
      user=%{ldap:uid}
      ...
    }
  }

Best wishes,
Rory

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to