From 1c5449a4992d18a89818894b20477ff0f301ded9 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 29 Sep 2023 15:54:07 -0700 Subject: [PATCH] Sue cn not uid in the ldap DN --- mail-server.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail-server.nix b/mail-server.nix index 4157fd0..3da5476 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -243,7 +243,7 @@ in { "dn = ${cfg.ldap.bind-dn}" "dnpass = ${readFile cfg.ldap.bind-password-file}" "auth_bind = yes" - "auth_bind_userdn = uid=%u,${cfg.ldap.member-ou},${cfg.ldap.base}" + "auth_bind_userdn = cn=%u,${cfg.ldap.member-ou},${cfg.ldap.base}" "base = ${cfg.ldap.base}" ]); target-file = "/run/dovecot-secret/ldap.conf";