nixpkgs/upstart-jobs/ldap/ldap.conf.nix
Marc Weber b5a7c767c5 Convert "ldap" (untested)
svn path=/nixos/branches/fix-style/; revision=14362
2009-03-06 12:25:44 +00:00

19 lines
326 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.users.ldap.server}
base ${config.users.ldap.base}
${
if config.users.ldap.useTLS then "
ssl start_tls
tls_checkpeer no
" else ""
}
"