Good morning. Please set logging in your hdb/bdb config ldif. This logfile should be the default.
Please be sure to always reply to the mailinglist.
Bye
Am 29.06.2010 08:05 schrieb "Braden McDaniel" braden@endoframe.com:
On Wed, 2010-06-23 at 18:35 +0200, Benjamin Griese wrote:
There is no cleartext because even that ...
Hm... I've tried base64-encoding the value for olcRootPW; still no luck. :-(
What does your logfile say to your invalid passwd?
Enable logging by setting the loglevel to...
I've added
olcLogLevel: 256
to cn=config.ldif. But I'm not seeing anything in /var/log/messages. Are the log messages going somewhere else?
--
Braden McDaniel braden@endoframe.com
On Tue, 2010-06-29 at 08:24 +0200, Benjamin Griese wrote:
Good morning. Please set logging in your hdb/bdb config ldif. This logfile should be the default.
Okay... I don't understand exactly what the log file is. My database lives in /var/lib/ldap. There is a file in this directory named "log.0000000001"; however, it does not appear to be a text file.
Please be sure to always reply to the mailinglist.
I would have, but your last response to me did not go to the mailing list. ;-)
Hi Braden,
On Tue, Jun 29, 2010 at 08:50, Braden McDaniel braden@endoframe.com wrote:
On Tue, 2010-06-29 at 08:24 +0200, Benjamin Griese wrote:
Good morning. Please set logging in your hdb/bdb config ldif. This logfile should be the default.
I'm wrong, you were right:
It's some time ago I visited my ldap config files :)
./cn=config.ldif:olcLogLevel: none ./cn=config.ldif:olcLogLevel: trace ./cn=config.ldif:olcLogLevel: packets ./cn=config.ldif:olcLogLevel: args ./cn=config.ldif:olcLogLevel: conns ./cn=config.ldif:olcLogLevel: BER ./cn=config.ldif:olcLogLevel: filter ./cn=config.ldif:olcLogLevel: config ./cn=config.ldif:olcLogLevel: ACL ./cn=config.ldif:olcLogLevel: stats ./cn=config.ldif:olcLogLevel: stats2 ./cn=config.ldif:olcLogLevel: shell ./cn=config.ldif:olcLogLevel: parse ./cn=config.ldif:olcLogLevel: sync
I grep'ed the above log types which you can define (at least the few I know).
Okay... I don't understand exactly what the log file is. My database lives in /var/lib/ldap. There is a file in this directory named "log.0000000001"; however, it does not appear to be a text file.
The file /var/log/messages is correct, seems like a little misunderstanding.
Your mentioned file is the internal logging of the backend database itself. You don't have to care about that file/these files in most cases. I think its main purpose is to correct corrupted DBs when your ldap-server crashed.
Please be sure to always reply to the mailinglist.
I would have, but your last response to me did not go to the mailing list. ;-)
Sorry for my fault, I havn't recognized that either. :)
-- Braden McDaniel braden@endoframe.com
[Sorry for the delay in getting back to this. A number of things have pulled me away from fiddling with this.]
On Tue, 2010-06-29 at 09:11 +0200, Benjamin Griese wrote:
Hi Braden,
On Tue, Jun 29, 2010 at 08:50, Braden McDaniel braden@endoframe.com wrote: On Tue, 2010-06-29 at 08:24 +0200, Benjamin Griese wrote: > Good morning. > Please set logging in your hdb/bdb config ldif. > This logfile should be the default.
I'm wrong, you were right:
It's some time ago I visited my ldap config files :)
[snip]
I grep'ed the above log types which you can define (at least the few I know).
I added these lines to cn=config.ldif:
olcLogLevel: 256 olcLogLevel: trace olcLogLevel: packets olcLogLevel: args olcLogLevel: conns olcLogLevel: BER olcLogLevel: filter olcLogLevel: config olcLogLevel: ACL olcLogLevel: stats olcLogLevel: stats2 olcLogLevel: shell olcLogLevel: parse olcLogLevel: sync
But after restarting slapd and trying ldapadd again, I still see nothing related to OpenLDAP in /var/log/messages.
Le 17/07/2010 08:34, Braden McDaniel a écrit :
I added these lines to cn=config.ldif:
olcLogLevel: 256 olcLogLevel: trace olcLogLevel: packets olcLogLevel: args olcLogLevel: conns olcLogLevel: BER olcLogLevel: filter olcLogLevel: config olcLogLevel: ACL olcLogLevel: stats olcLogLevel: stats2 olcLogLevel: shell olcLogLevel: parse olcLogLevel: sync
But after restarting slapd and trying ldapadd again, I still see nothing related to OpenLDAP in /var/log/messages.
You need to configure syslog to send messages from the "local4" facility to a log file. Depending on your syslog, something like the following in /etc/syslog.conf: local4.* /var/log/slapd.log
Jonathan
openldap-technical@openldap.org