nixpkgs/system/etc/ldap.conf.nix
Eelco Dolstra 9866132d81 * Generate the LDAP configuration automatically.
svn path=/nixos/trunk/; revision=7698
2007-01-16 16:09:43 +00:00

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