2007-01-16 16:09:43 +00:00
|
|
|
{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" "
|
|
|
|
|
2007-11-09 18:49:45 +00:00
|
|
|
uri ${config.users.ldap.server}
|
|
|
|
base ${config.users.ldap.base}
|
2007-01-16 16:09:43 +00:00
|
|
|
|
|
|
|
${
|
2007-11-09 18:49:45 +00:00
|
|
|
if config.users.ldap.useTLS then "
|
2007-01-16 16:09:43 +00:00
|
|
|
ssl start_tls
|
|
|
|
tls_checkpeer no
|
|
|
|
" else ""
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|