ldap: Add option for NSS integration

This commit is contained in:
Markus Mueller 2016-07-18 13:24:21 +00:00 committed by Franz Pletz
parent e04c3506eb
commit 07c44b81c3
2 changed files with 7 additions and 1 deletions

View File

@ -68,6 +68,12 @@ in
description = "Whether to include authentication against LDAP in login PAM";
};
nsswitch = mkOption {
type = types.bool;
default = true;
description = "Whether to include lookup against LDAP in NSS";
};
server = mkOption {
example = "ldap://ldap.example.org/";
description = "The URL of the LDAP server.";

View File

@ -8,7 +8,7 @@ let
inherit (config.services.avahi) nssmdns;
inherit (config.services.samba) nsswins;
ldap = config.users.ldap.enable;
ldap = (config.users.ldap.enable && config.users.ldap.nsswitch);
in