mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
config.users.ldap: do not include nss module if turned off
This commit is contained in:
parent
1179840f9a
commit
a485504740
1 changed files with 2 additions and 2 deletions
|
@ -240,9 +240,9 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
system.nssModules = singleton (
|
system.nssModules = mkIf cfg.nsswitch (singleton (
|
||||||
if cfg.daemon.enable then nss_pam_ldapd else nss_ldap
|
if cfg.daemon.enable then nss_pam_ldapd else nss_ldap
|
||||||
);
|
));
|
||||||
|
|
||||||
system.nssDatabases.group = optional cfg.nsswitch "ldap";
|
system.nssDatabases.group = optional cfg.nsswitch "ldap";
|
||||||
system.nssDatabases.passwd = optional cfg.nsswitch "ldap";
|
system.nssDatabases.passwd = optional cfg.nsswitch "ldap";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue