diff --git a/configuration.nix b/configuration.nix index fba0123..cc60c5c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -74,12 +74,17 @@ ldap = { enable = true; bind = { - dn = "cn=dovecot,ou=users,dc=auth,dc=htw,dc=stura-dresden,dc=de"; + dn = "cn=ldapservice,ou=users,dc=auth,dc=htw,dc=stura-dresden,dc=de"; passwordFile = "/var/lib/dovecot_ldap_passwd"; }; - dovecot = { }; + dovecot = { + userFilter = "(&(objectClass=posixAccount)(cn=%u))"; + passFilter = "(&(objectClass=posixAccount)(cn=%u))"; + }; + postfix = { + filter = "(&(objectClass=posixUser)(cn=%s))"; + }; searchBase = "dc=auth,dc=htw,dc=stura-dresden,dc=de"; - searchScope = "sub"; uris = [ "ldap://localhost:389" ];