From 03eb9e16c8ab3e82cd0d2cd87be06ab3220fe782 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 30 Sep 2023 09:38:10 -0700 Subject: [PATCH] Put user_attrs in the wrong place --- mail-server.nix | 1 + postfix.nix | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mail-server.nix b/mail-server.nix index 3da5476..db2f5db 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -245,6 +245,7 @@ in { "auth_bind = yes" "auth_bind_userdn = cn=%u,${cfg.ldap.member-ou},${cfg.ldap.base}" "base = ${cfg.ldap.base}" + "user_attrs = =user=%{ldap:cn}" ]); target-file = "/run/dovecot-secret/ldap.conf"; }; diff --git a/postfix.nix b/postfix.nix index fb62478..f4bd48f 100644 --- a/postfix.nix +++ b/postfix.nix @@ -200,8 +200,6 @@ in { auth_mechanisms = login plain - user_attrs = =user=%{ldap:cn} - passdb { driver = ldap args = ${cfg.ldap-conf}