diff --git a/mail-server.nix b/mail-server.nix index 9a6f6c6..4ac4c78 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -209,7 +209,8 @@ in { "auth_bind = yes" "auth_bind_userdn = cn=%u,${cfg.ldap.member-ou},${cfg.ldap.base}" "base = ${cfg.ldap.base}" - # "user_filter = (&(objectClass=organizationalPerson)(cn=%n))" + "user_filter = (&(objectClass=organizationalPerson)(cn=%n))" + "pass_filter = (&(objectClass=organizationalPerson)(cn=%n))" ]); target-file = "/run/dovecot-secret/ldap.conf"; };