ldap: Add option for NSS integration
This commit is contained in:
parent
e04c3506eb
commit
07c44b81c3
@ -68,6 +68,12 @@ in
|
|||||||
description = "Whether to include authentication against LDAP in login PAM";
|
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 {
|
server = mkOption {
|
||||||
example = "ldap://ldap.example.org/";
|
example = "ldap://ldap.example.org/";
|
||||||
description = "The URL of the LDAP server.";
|
description = "The URL of the LDAP server.";
|
||||||
|
@ -8,7 +8,7 @@ let
|
|||||||
|
|
||||||
inherit (config.services.avahi) nssmdns;
|
inherit (config.services.avahi) nssmdns;
|
||||||
inherit (config.services.samba) nsswins;
|
inherit (config.services.samba) nsswins;
|
||||||
ldap = config.users.ldap.enable;
|
ldap = (config.users.ldap.enable && config.users.ldap.nsswitch);
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user