Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: auerhaan on February 15, 2010, 09:57:25 pm

Title: Slapd errors? in syslog
Post by: auerhaan on February 15, 2010, 09:57:25 pm
I have this error in my syslog from time to time:
Quote
Feb 15 21:38:08 ubuntu01 slapd[7927]: conn=57599 op=17 do_search: invalid dn: "sambaDomainName=,sambaDomainName=AUERHAAN-WG,dc=ebox"

Looks like there is a request that isn't build up properly sambaDomainName=,sambaDomainName=

There are also a lot messages like these:
Quote
Feb 15 08:03:45 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (domainMailPortion) not indexed
Feb 15 08:03:46 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (mail) not indexed
Feb 15 08:03:46 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (dc) not indexed
Feb 15 08:04:30 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (sambaSID) not indexed
Feb 15 08:04:30 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (sambaGroupType) not indexed
Feb 15 08:04:30 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (sambaSIDList) not indexed
Feb 15 08:04:30 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (sambaGroupType) not indexed
Feb 15 08:04:30 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (sambaSIDList) not indexed
Feb 15 08:04:30 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (sambaSID) not indexed
Feb 15 08:04:30 ubuntu01 slapd[7927]: <= bdb_equality_candidates: (gidNumber) not indexed
Title: Re: Slapd errors? in syslog
Post by: Ret on March 08, 2010, 10:01:52 pm
I'm also getting SLAPD messages en syslog, such as:

slapd[8570]: <= bdb_equality_candidates: (mail) not indexed

slapd[8570]: connection_read(22): no connection!


Any help??
Title: Re: Slapd errors? in syslog
Post by: MMaI on April 16, 2010, 05:45:51 pm
same problem here, have been looking for problems and errors but got no result.
As I have EBox on one of my production system, please resolve this quickly!
Title: Re: Slapd errors? in syslog
Post by: jsalamero on April 23, 2010, 08:08:51 pm
This is a harmless error, you can just ignore it.
Title: Re: Slapd errors? in syslog
Post by: christian on April 24, 2010, 07:04:30 am
This is a harmless error, you can just ignore it.

Harmless unless you have thousands of entries isn't it?
I mean lack of index will impact performance (both in term of response time and load on server).
For what I've experienced with other LDAP distributions, up to few hundreds of entries will not make significant difference whenever attribute is indexed or not. This assuming you don't have too many requests... but this should match the fact that you don't have too many user entries neither.

Am I correct?
Title: Re: Slapd errors? in syslog
Post by: Javier Amor Garcia on April 27, 2010, 05:11:11 pm
To remove the 'bdb_equality' warnings you could follow this instructions:

http://trac.ebox-platform.com/wiki/Document/HowTo/LDAPoptimization
Title: Re: Slapd errors? in syslog
Post by: Javier Amor Garcia on April 27, 2010, 05:12:11 pm
Have you any clue of when this errors appear? Is something random or is always after a specific operation?.

I have this error in my syslog from time to time:
Quote
Feb 15 21:38:08 ubuntu01 slapd[7927]: conn=57599 op=17 do_search: invalid dn: "sambaDomainName=,sambaDomainName=AUERHAAN-WG,dc=ebox"

Looks like there is a request that isn't build up properly sambaDomainName=,sambaDomainName=
Title: Re: Slapd errors? in syslog
Post by: lelik on July 30, 2010, 02:00:07 am
According to http://trac.ebox-platform.com/wiki/Document/HowTo/LDAPoptimization (http://trac.ebox-platform.com/wiki/Document/HowTo/LDAPoptimization) you have to modify
Code: [Select]
$ sudo vim /etc/ldap/slapd-frontend.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
$ sudo vim /etc/ldap/slapd-translucent.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
$ sudo vim /etc/ldap/slapd-replica.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
which no longer the case as slapd schema has changed.
Title: Re: Slapd errors? in syslog
Post by: lelik on July 30, 2010, 06:44:04 pm
Below worked for me:
Stop slapd:
Code: [Select]
$ sudo /etc/init.d/slapd stopModify config to include additional indexes
Code: [Select]
$ sudo nano /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldifFind
Code: [Select]
olcDbIndex: objectclass eq
olcDbIndex: entryCSN eq
olcDbIndex: entryUUID eq
olcDbIndex: uid eq
olcDbIndex: memberUid eq
Replace with
Code: [Select]
olcDbIndex: objectClass eq,pres
olcDbIndex: ou,cn,sn,mail,givenname eq,pres,sub
olcDbIndex: uidNumber,gidNumber,memberUid eq,pres
olcDbIndex: loginShell eq,pres
olcDbIndex: uniqueMember eq,pres
olcDbIndex: uid pres,sub,eq
olcDbIndex: displayName pres,sub,eq
olcDbIndex: sambaSID eq
olcDbIndex: sambaPrimaryGroupSID eq
olcDbIndex: sambaDomainName eq
olcDbIndex: sambaGroupType eq
olcDbIndex: sambaSIDList eq
Save.
Index:
Code: [Select]
$ sudo slapindex
WARNING!
Runnig as root!
There's a fair chance slapd will fail to start.
Check file permissions!
Fix permissions
Code: [Select]
$ sudo chown openldap:openldap -R /var/lib/ldap*Restart slapd
Code: [Select]
$ sudo /etc/init.d/slapd start
Title: Re: Slapd errors? in syslog
Post by: satyris on August 07, 2010, 10:19:41 am
@lelik:
Thanks man, that saved my day  8)

Update:
Quote
slapd[8122]: connection_read(23): no connection!

still there :-(