3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/etc/ldap.conf.nix
Eelco Dolstra 2fc94b76fe * Eliminate all calls to config.get.
svn path=/nixos/trunk/; revision=9619
2007-11-09 18:49:45 +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 ""
}
"