mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
f10a95e88e
svn path=/nixos/trunk/; revision=8506
18 lines
362 B
Nix
18 lines
362 B
Nix
{writeText, config}:
|
|
|
|
# Careful: OpenLDAP seems to be very picky about the indentation of
|
|
# this file. Directives HAVE to start in the first column!
|
|
|
|
writeText "ldap.conf" "
|
|
|
|
uri ${config.get ["users" "ldap" "server"]}
|
|
base ${config.get ["users" "ldap" "base"]}
|
|
|
|
${
|
|
if config.get ["users" "ldap" "useTLS"] then "
|
|
ssl start_tls
|
|
tls_checkpeer no
|
|
" else ""
|
|
}
|
|
|
|
"
|