Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: auerhaan on February 15, 2010, 09:57:25 pm
-
I have this error in my syslog from time to time:
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:
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
-
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??
-
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!
-
This is a harmless error, you can just ignore it.
-
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?
-
To remove the 'bdb_equality' warnings you could follow this instructions:
http://trac.ebox-platform.com/wiki/Document/HowTo/LDAPoptimization
-
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:
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=
-
According to http://trac.ebox-platform.com/wiki/Document/HowTo/LDAPoptimization (http://trac.ebox-platform.com/wiki/Document/HowTo/LDAPoptimization) you have to modify
$ 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.
-
Below worked for me:
Stop slapd:
$ sudo /etc/init.d/slapd stop
Modify config to include additional indexes
$ sudo nano /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
Find
olcDbIndex: objectclass eq
olcDbIndex: entryCSN eq
olcDbIndex: entryUUID eq
olcDbIndex: uid eq
olcDbIndex: memberUid eq
Replace with
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:
$ sudo slapindex
WARNING!
Runnig as root!
There's a fair chance slapd will fail to start.
Check file permissions!
Fix permissions
$ sudo chown openldap:openldap -R /var/lib/ldap*
Restart slapd
$ sudo /etc/init.d/slapd start
-
@lelik:
Thanks man, that saved my day 8)
Update:
slapd[8122]: connection_read(23): no connection!
still there :-(