crans_bcfg2/Python/etc/default/slapd
Nicolas Dandrimont 5af21cf9b2 Petits oublis...
darcs-hash:20080925005539-ffbb2-258f1193e8e0580f2149e623c1333de33322846d.gz
2008-09-25 02:55:39 +02:00

48 lines
1.3 KiB
Python

# -*- mode: python -*-
include("ip")
header('Fichier de configuration du démon slapd')
@# Default location of the slapd.conf file
@SLAPD_CONF=
@
@# System account to run the slapd server under. If empty the server
@# will run as root.
@SLAPD_USER=
@
@# System group to run the slapd server under. If empty the server will
@# run in the primary group of its user.
@SLAPD_GROUP=
@
@# Path to the pid file of the slapd server. If not set the init.d script
@# will try to figure it out from $SLAPD_CONF (/etc/ldap/slapd.conf)
@SLAPD_PIDFILE=
@
@# Configure if db_recover should be called before starting slapd
@TRY_BDB_RECOVERY=yes
@
@# Configure if the slurpd daemon should be started. Possible values:
@# - yes: Always start slurpd
@# - no: Never start slurpd
@# - auto: Start slurpd if a replica option is found in slapd.conf (default)
@SLURPD_START=no
@
@# slapd normally serves ldap only on all TCP-ports 389. slapd can also
@# service requests on TCP-port 636 (ldaps) and requests via unix
@# sockets.
@# Example usage:
@SOCKET_PATH="/var/run/slapd/ldapi"
slapd_services = ["ldap://127.0.0.1/", "ldapi:///"]
slapd_services += ["ldap://%s/" % admip()]
if has("sable"):
slapd_services += ["ldaps://%s/" % pubip()]
print 'SLAPD_SERVICES="%s"' % ' '.join(slapd_services)
@
@# Additional options to pass to slapd and slurpd
@SLAPD_OPTIONS=""
@SLURPD_OPTIONS=""
@