1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/etc/ldap.conf.nix

19 lines
362 B
Nix
Raw Normal View History

{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 ""
}
"