I'd totally forgotten to reply-to-all:
Arwin,
You'd have to turn log levels up, and/or restrict usage to narrow that down (classic trouble shooting, to the rescue).
Personally, I'd ask your staff to start with (devs and IT) and ask what's being done different, or if there are new users of LDAP.
I can understand something being done that's 'new' or 'different' could very well be some snoop, but more likely the 'culprit' is going to be something 'ok'.
Moving on...
See when the events occur and (and perhaps who is authenticating)turn the log levels up during that time - that'll require a restart of slapd if your config is static files (now I really see the beauty of olconfig).
Start with just logging auth, whether you find a link there or not, and if you need more detail, log the queries (shudder).
Oh, and you'll need some 'spare' disk and cpu if this is a modestly used service. If you get to the latter part, you'll likely crush your box.
And back again...
Seriously, ask around. It'll likely be easier.
This was all assuming that this was an established service - and if you've simply taken over an admin role, this could have been going on for a while and the final 'culprit' may simply be missing indexes.
Good luck, - chris
Chris Jacobs, Systems Administrator Apollo Group | Apollo Marketing | Aptimus 2001 6th Ave Ste 3200 | Seattle, WA 98121 phone: 206.441.9100 x1245 | mobile: 206.601.3256 | fax: 206.441.9661 email: chris.jacobs@apollogrp.edu
----- Original Message ----- From: openldap-technical-bounces+chris.jacobs=apollogrp.edu@OpenLDAP.org openldap-technical-bounces+chris.jacobs=apollogrp.edu@OpenLDAP.org To: Howard Chu hyc@symas.com Cc: openldap-technical@openldap.org openldap-technical@openldap.org Sent: Wed May 05 22:33:27 2010 Subject: Re: bdb_index_read: failed
Thanks Howard, thats good news.
However, I would like to know what or who is causing this. I've tried different loglevels but matchting the error with the query/filter that's causing it is rather challenging to say the least... Any hints on how to find the query responsible?
Thanks! Arwin.
Howard Chu schreef:
Arwin wrote:
Hi all,
We are running 1 master server and a couple of slaves, all openldap-2.4 on Ubuntu 8.04 lts, syncrepl and cn=config configuration. The last couple of days we are getting a few of the following errors in the slapd logs:
Apr 29 11:03:41 ldapsrvr-1 slapd[6112]: bdb_idl_fetch_key: [b49d1940] Apr 29 11:03:41 ldapsrvr-1 slapd[6112]:<= bdb_index_read: failed (-30990) Apr 29 11:03:41 ldapsrvr-1 slapd[6112]:<= bdb_equality_candidates: id=0, first=0, last=0 Apr 29 11:03:41 ldapsrvr-1 slapd[6112]: => bdb_equality_candidates (objectClass)
Tried solving it by re-adding the index and running slapindex but the errors still remain.
Everything seems to work ok though, replication works, we can add/edit entries and user authentication of accounts in the dit work just fine.
Can anybody tell me if this (bdb_index_read: failed (-30990)) is something that needs to be fixed and if so, how?
No. It's normal, it just means it was looking for the index of a value that doesn't exist in your DB.
This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
Chris Jacobs wrote:
This was all assuming that this was an established service - and if you've simply taken over an admin role, this could have been going on for a while and the final 'culprit' may simply be missing indexes.
There is no missing index. The index is working correctly, it was simply asked to find a value that does not exist. There's nothing abnormal about that, there's nothing to fix. This whole thread is much ado about nothing.
openldap-technical@openldap.org