View previous topic :: View next topic |
Author |
Message |
linuxkrn Tux's lil' helper
Joined: 13 Oct 2003 Posts: 140 Location: Denver,Colorado
|
Posted: Wed Dec 08, 2004 5:37 pm Post subject: slapd (openldap) logs? |
|
|
For some reason I can't find any logs from my slapd openldap server.
They should be going to metalog with the default service name of argv[0] or slapd according to the docs...
however, there is nothing in /var/log/everything/current even when I restart the server.
What's the deal?
metalog 0.8_pre20031130
openldap 2.1.30-r2 |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Wed Dec 08, 2004 6:16 pm Post subject: |
|
|
Check the file "/etc/metalog/metalog.conf". Note where slapd is being logged to. If it is not listed then put it there.
Also check the man page and conf file for slapd. You may have logging turned off. _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
linuxkrn Tux's lil' helper
Joined: 13 Oct 2003 Posts: 140 Location: Denver,Colorado
|
Posted: Wed Dec 08, 2004 6:30 pm Post subject: |
|
|
I shouldn't need to do that since the "Everything" should capture it.
Code: | Everything important :
facility = "*"
minimum = 6
logdir = "/var/log/everything" |
I had already looked at the slapd man page and it covers the defaults. I also checked the /etc/conf.d/slapd file for any that disabled it. Nothing there. |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Wed Dec 08, 2004 8:49 pm Post subject: |
|
|
OK, slapd does not turn on logging by default. You must explicitly tell it to. You can do this in the slapd.conf file or in /etc/conf.d/slapd uncomment the OPTS line and add "-d 256". I'm sure you've already thought of this though.
I researched this as much as possible but could only find one reference to anyone else having trouble with metalog and slapd. I found this question on the openldap mailing list archive http://www.openldap.org/lists/. His question was never answered so I'm not sure if there is a problem or not. metalog doesn't log console messages by default, perhaps slapd is sending it's logging info to the console? Turn on console logging in metalog.conf. (I know that is grasping at straws but I can't think of anything else).As a last resort you could always use sysklog instead of metalog if you can't get it to work or join the mailing list I linked to above and ask the question again. I couldn't find an irc channel for openldap. _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
RockHound Tux's lil' helper
Joined: 11 Nov 2002 Posts: 112 Location: Hamburg, Germany
|
Posted: Thu Jun 16, 2005 7:34 am Post subject: |
|
|
I am expiriencing the exact same problem. Nothing in metalog... Very strange tried -s / -l / loglevel etc... nothing.
Any ideas? |
|
Back to top |
|
|
|