[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Global configuration directive 'logfile'
- To: openldap-technical@openldap.org
- Subject: Global configuration directive 'logfile'
- From: Mark <mah042@gmail.com>
- Date: Wed, 30 Mar 2011 16:16:52 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=H5NTmq3jpBZLwTWkQI3VBeTkX3SJku/qZs+cD5+vx04=; b=WogIVCHaECoxBETJRxtlQd3kPFYQMW6ZcCHFy2IEClRqtlKAQtH1V4b5xBEVbw8FCo Z4vIyzyHsKtwr4kKGk4oUqkqfUiJ6cuw+uuSdPi/WPfoVMYQ5peWNuXgli1kq2qZmN1x vBk8XLnvSzLAFUpNdxc4MHY/V4MKBRp2ssL7E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P1LEbvFKbroUXpiVu1/hhLp3taP6c33QyhImTttFaiKmR4rFMKOH4EUew+IsdjOjGY apyH6c6OMSRq2w6n5HMeY7yoq7ngHjstd+tjoNL0qsnOFN8ch95aip7dffphnyHNp8O6 IF8nYJ9Vw3PUMFJbl82rtpql1BgOOLyQU9ONQ=
I've been trying to get the 'logfile' configuration attribute (man5/slapd.conf.5) working but can't seem to. The relevant slapd.conf entries before I define my backend look like:
loglevel stats sync
logfile /tmp/openldap/var/log/slapd.log
and the file exists before I start slapd:
$ ls -l /tmp/openldap/var/log/slapd.log
-rw-r--r--Â 1 me mygrp 0 Mar 30 15:58 /tmp/openldap/var/log/slapd.log
SLAPD runs fine dumping information into syslog but my logfile stays zero length. How can I get my logfile to get written to also?
Thank you,
Â
My setup:
RedHat Enerprise Linux 4.7 (Linux host 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
OpenLDAP 2.4.25
BerkeleyDB 4.8.30
OpenSSL 1.0.0d
Cyrus SASL 2.1.23
configured thusly:
(
ÂÂÂ PATH="/tmp/openldap/bin:${PATH}"; export PATH
ÂÂÂ echo "##BEG `date '+%Y/%m/%d %H:%M:%S'` - configure"
ÂÂÂ CPPFLAGS="-I/tmp/openldap/include" \
ÂÂÂ CFLAGS="-g" \
ÂÂÂ LDFLAGS="-L/tmp/openldap/lib -R/tmp/openldap/lib" \
ÂÂÂ ./configure \
ÂÂÂÂÂÂÂ --without-subdir \
ÂÂÂÂÂÂÂ --enable-slapd \
ÂÂÂÂÂÂÂÂÂÂÂ --enable-modules \
ÂÂÂÂÂÂÂÂÂÂÂ --enable-wrappers \
ÂÂÂÂÂÂÂ --enable-backends=mod \
ÂÂÂÂÂÂÂÂÂÂÂ --disable-sql \
ÂÂÂÂÂÂÂÂÂÂÂ --disable-ndb \
ÂÂÂÂÂÂÂ --enable-overlays=mod \
ÂÂÂÂÂÂÂ --enable-debug \
ÂÂÂÂÂÂÂ --prefix=/tmp/openldap
ÂÂÂ echo "##END `date '+%Y/%m/%d %H:%M:%S'` - configure"
)
compiled and installed in /tmp/openldap
$ file /tmp/openldap/libexec/slapd
/tmp/openldap/libexec/slapd: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped