mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
2fc94b76fe
svn path=/nixos/trunk/; revision=9619
19 lines
326 B
Nix
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 ""
|
|
}
|
|
|
|
"
|