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