···62 description = "Whether to enable authentication against an LDAP server.";
63 };
6400000000000065 server = mkOption {
66 example = "ldap://ldap.example.org/";
67 description = "The URL of the LDAP server.";
···62 description = "Whether to enable authentication against an LDAP server.";
63 };
6465+ loginPam = mkOption {
66+ type = types.bool;
67+ default = true;
68+ description = "Whether to include authentication against LDAP in login PAM";
69+ };
70+71+ nsswitch = mkOption {
72+ type = types.bool;
73+ default = true;
74+ description = "Whether to include lookup against LDAP in NSS";
75+ };
76+77 server = mkOption {
78 example = "ldap://ldap.example.org/";
79 description = "The URL of the LDAP server.";
···4hardeningLDFlags=()
5hardeningDisable=${hardeningDisable:-""}
67-if [[ -z "@ld_supports_bindnow@" ]]; then
8- hardeningDisable+=" bindnow"
9-fi
10-11-if [[ -z "@ld_supports_relro@" ]]; then
12- hardeningDisable+=" relro"
13-fi
1415if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: Value of '$hardeningDisable': $hardeningDisable >&2; fi
1617-if [[ ! $hardeningDisable == "all" ]]; then
18 if [[ -n "$NIX_DEBUG" ]]; then echo 'HARDENING: Is active (not completely disabled with "all" flag)' >&2; fi
19 for flag in "${hardeningFlags[@]}"
20 do
···4hardeningLDFlags=()
5hardeningDisable=${hardeningDisable:-""}
67+hardeningDisable+=" @hardening_unsupported_flags@"
00000089if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: Value of '$hardeningDisable': $hardeningDisable >&2; fi
1011+if [[ ! $hardeningDisable =~ "all" ]]; then
12 if [[ -n "$NIX_DEBUG" ]]; then echo 'HARDENING: Is active (not completely disabled with "all" flag)' >&2; fi
13 for flag in "${hardeningFlags[@]}"
14 do