[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: openldap does not want to write log files?
- To: Mauricio Tavares <raubvogel@gmail.com>
- Subject: Re: openldap does not want to write log files?
- From: "Brett @Google" <brett.maxfield@gmail.com>
- Date: Wed, 2 Mar 2011 00:55:43 +1000
- Cc: openldap-technical <openldap-technical@openldap.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jAOEzHEhQgXh4Hz2AUvtErdQvz8bLLqwC7SZYdNX6as=; b=DDKesB2TO8n90YSJzPQzoihgEUZOnsuRWLtLppQZNzrSyDKzW6zL4TvtF8lXBfDhc9 v6XYDcswaNmmDNZwDdvjWAX+DHvEteq3JAuvDddMwnLhtsgCKhhk/IBW4ppaLglRgGVb rrZW2YRoRQicTN+kQYm0utpRrR7NfBelwihrA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=IadaktNKTPa3kf1BFsXXuCjt2mW5uBfN6Udu+H55bgk4F/lzp1tvB5Bkw2HF7NGa05 h9JsjYyiRj3ZTs6elyzloBF/HdUk8t0SbvOVnDjdm8jcA6hI4Zvwj+fp2Vvp4rezPqYI kCvOdyigH60e2vGSWp5f89bOMlf14ZGfzHdiY=
- In-reply-to: <AANLkTikOMCRjg_FLupS5tT5E0diBLhDBgsnvKDu9kRNN@mail.gmail.com>
- References: <AANLkTikOMCRjg_FLupS5tT5E0diBLhDBgsnvKDu9kRNN@mail.gmail.com>
you are missing local4.debug in your syslog.conf, syslog messages are
logged at DEBUG level by default, unless you say otherwise.
" -s syslog-level
This option tells slapd at what level debugging statements
should be logged to the syslog(8) facility. The value "sys-
log-level" can be set to any value or combination allowed by the
"-d" switch. Slapd logs all messages selected by "syslog-level"
at the syslog(3) severity level "DEBUG", on the unit specified
with "-l".
"
dont know why the other log is not working, perhaps check you are not
writing logs as the ldap user or you need to --enable-debug during
configure ?.
Cheers
Brett
On Wed, Mar 2, 2011 at 12:17 AM, Mauricio Tavares <raubvogel@gmail.com> wrote:
> I am feeling rather confused here. I installed openldap in a
> solaris10/sparc box but I do not seem to persuade it to write to a log
> file. FYI, right now I am running slapd as root so permissions AFAIk
> should not be the issue. FYI, syslog here is the old,
> non-rsyslog/syslog-ng variety.
>
> So, in the /etc/syslog.conf file I have:
>
> local4.info /var/log/ldap.log
> local4.err /var/log/ldap.log
> local4.notice /var/log/ldap.log
>
> which makes me think I should be covering every possible message sent
> by slapd. Now /var/log/ldap.log is created as
>
> -rw------- 1 root sys 0 Feb 28 16:21 ldap.log
>
> and in the slapd.conf file I have
>
> loglevel 11560
> logfile /var/log/slapd.log
>
> which not only should mean slapd is blabbing a lot to the log file.
> Also note I am telling it to write to /var/log/slapd.log,
>
> -rw------- 1 root sys 0 Mar 1 07:39 slapd.log
>
> When I start slapd (after restarting syslog just in case), nothing is
> written to those two log files. In fact, the only clue that something
> happened is the data in slapd.log changed:
>
> -rw------- 1 root sys 0 Feb 28 16:21 ldap.log
> -rw------- 1 root sys 0 Mar 1 07:40 slapd.log
>
> Anything I am missing here?
>