#
# $Id: ldap 1490 2012-07-03 09:28:56Z joergs $
#

#
# ldap_backup
#
LDAP_BACKUP_BIND_DN="cn=ldapbackup,ou=admins,ou=global,o=smartclient,c=de"
LDAP_BACKUP_BIND_PW="n7m9A7Y9"
LDAP_BACKUP_PATH="/var/lib/ldap/backup/"
LDAP_BACKUP_FILE="export.ldif"
LDAP_BACKUP_SUBVERSION_URL="https://dass-it.de/svn/KUNDE/technical/ldap/backup/"
#LDAP_BACKUP_DBNUM=1
LDAP_BACKUP_SVN_USER=ldapbackup
LDAP_BACKUP_SVN_PW=secretpassword

# ldap_restore
# minimal number of DNs in restore file to start the restore.
# Reduces the risk, that an corrupt backup file is used as base for a restore.
LDAP_RESTORE_MIN_DN=1000

#
# sc_ldap_check_and_restart
#

# wait 5 minutes for ldap result
LDAP_CHECK_TIMEOUT=300

# wait 10 minutes after restart until start testing again
LDAP_CHECK_RESTART_WAIT_TIME=600

# send infos (on failure) to this email address
LDAP_CHECK_MAILADDR=nagios@lvermgeo.rlp.de

LDAP_CHECK_LOGFILE_PROXY="/tmp/log.ldapproxy"
LDAP_CHECK_LOGFILE_PROXY_DEBUG="/tmp/log.ldapproxy.debug"
LDAP_CHECK_LOGFILE_SYNC="/tmp/log.ldapsync"
LDAP_CHECK_LOGFILE_SYNC_DEBUG="/tmp/log.ldapsync.debug"
LDAP_CHECK_LOGFILE_PERF="/var/log/smartclient/ldap_performance"
LDAP_CHECK_MAX_DAYS_LOGFILE=5


#
# sc_ldap_sync.sh
#
# get LDIF from LDAP server 
# and sync it to other hosts 
#

# list of user@host (separated by space, user is optional)
LDAP_SYNC_DESTS=

# command to strip LDIF file (optional)
LDAP_SYNC_LDIF_STRIP=/usr/bin/ldif_strip.pl

# command used on destination to setup new LDAP database
# expected $1 as LDIF-file
LDAP_SYNC_DEST_SETUP="sudo /usr/sbin/sc_ldap_restore.sh"

# directory, where LDAP database is stored
# IMPORTANT: no trailing "/" after LDAP_DATA_DIR
LDAP_DATA_DIR=/var/lib/ldap/lvermgeo
