Make the ldap test working
- The smtp/imap user name is now user@domain.tld - Make the test_lookup function much more robust: it was now getting the correct file from the store.
This commit is contained in:
parent
8b03ae5701
commit
33554e57ce
3 changed files with 33 additions and 28 deletions
12
default.nix
12
default.nix
|
@ -280,8 +280,8 @@ in
|
|||
|
||||
userFilter = mkOption {
|
||||
type = types.str;
|
||||
default = "cn=%u";
|
||||
example = "(&(objectClass=inetOrgPerson)(cn=%u))";
|
||||
default = "mail=%u";
|
||||
example = "(&(objectClass=inetOrgPerson)(mail=%u))";
|
||||
description = ''
|
||||
Filter for user lookups in Dovecot.
|
||||
|
||||
|
@ -304,9 +304,9 @@ in
|
|||
};
|
||||
|
||||
passFilter = mkOption {
|
||||
type = types.str;
|
||||
default = "cn=%u";
|
||||
example = "(&(objectClass=inetOrgPerson)(cn=%u))";
|
||||
type = types.nullOr types.str;
|
||||
default = "mail=%u";
|
||||
example = "(&(objectClass=inetOrgPerson)(mail=%u))";
|
||||
description = ''
|
||||
Filter for password lookups in Dovecot.
|
||||
|
||||
|
@ -331,7 +331,7 @@ in
|
|||
|
||||
uidAttribute = mkOption {
|
||||
type = types.str;
|
||||
default = "cn";
|
||||
default = "mail";
|
||||
example = "uid";
|
||||
description = ''
|
||||
The LDAP attribute referencing the account name for a user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue