From f1b38d75247afe2f5c0ab3162533376b196e5aa6 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 1 Oct 2023 08:30:48 -0700 Subject: [PATCH] Move pass_attrs into passdb clause... --- dovecot.nix | 1 + mail-server.nix | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dovecot.nix b/dovecot.nix index 027e51d..bf9b787 100644 --- a/dovecot.nix +++ b/dovecot.nix @@ -357,6 +357,7 @@ in { passdb { driver = ldap args = ${cfg.ldap-conf} + pass_attrs = cn=user } # All users map to one actual system user diff --git a/mail-server.nix b/mail-server.nix index fcf6eb2..2b0d637 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -211,7 +211,6 @@ in { "base = ${cfg.ldap.base}" "user_filter = (&(objectClass=organizationalPerson)(cn=%n))" "pass_filter = (&(objectClass=organizationalPerson)(cn=%n))" - "pass_attrs = cn=user" ]); target-file = "/run/dovecot-secret/ldap.conf"; };