diff options
author | Markus Mueller <john.subscriber@markus.institute> | 2016-07-18 13:24:21 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-08-23 21:12:51 +0200 |
commit | 07c44b81c3c50ac55fdde82aa7a761aa6e758fd6 (patch) | |
tree | f839cb16c0df8a6be0dedacaeb9222311c69539d /nixos/modules | |
parent | e04c3506eb24eb6e08d0938cc469aa140b4ea165 (diff) | |
download | nixlib-07c44b81c3c50ac55fdde82aa7a761aa6e758fd6.tar nixlib-07c44b81c3c50ac55fdde82aa7a761aa6e758fd6.tar.gz nixlib-07c44b81c3c50ac55fdde82aa7a761aa6e758fd6.tar.bz2 nixlib-07c44b81c3c50ac55fdde82aa7a761aa6e758fd6.tar.lz nixlib-07c44b81c3c50ac55fdde82aa7a761aa6e758fd6.tar.xz nixlib-07c44b81c3c50ac55fdde82aa7a761aa6e758fd6.tar.zst nixlib-07c44b81c3c50ac55fdde82aa7a761aa6e758fd6.zip |
ldap: Add option for NSS integration
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/config/ldap.nix | 6 | ||||
-rw-r--r-- | nixos/modules/config/nsswitch.nix | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix index 7cbcc39412ea..da875d6e4821 100644 --- a/nixos/modules/config/ldap.nix +++ b/nixos/modules/config/ldap.nix @@ -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."; diff --git a/nixos/modules/config/nsswitch.nix b/nixos/modules/config/nsswitch.nix index a39c2895bf84..f30136be44e1 100644 --- a/nixos/modules/config/nsswitch.nix +++ b/nixos/modules/config/nsswitch.nix @@ -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 |