やるきなし

2015/10/28 13:34 / slapd[XXXX]: <= bdb_equality_candidates: (uid) not indexed

slapd が以下のように syslog になにやら大量に吐くので,対処する.http://d.hatena.ne.jp/labunix/20130421にある手法で対処.

slapd[6000]: <= bdb_equality_candidates: (cn) not indexed
slapd[6000]: <= bdb_equality_candidates: (gidNumber) not indexed
slapd[6000]: <= bdb_equality_candidates: (member) not indexed
slapd[6000]: <= bdb_equality_candidates: (memberUid) not indexed
slapd[6000]: <= bdb_equality_candidates: (ou) not indexed
slapd[6000]: <= bdb_equality_candidates: (sambaGroupType) not indexed
slapd[6000]: <= bdb_equality_candidates: (sambaSIDList) not indexed
slapd[6000]: <= bdb_equality_candidates: (sambaSID) not indexed
slapd[6000]: <= bdb_equality_candidates: (uid) not indexed
slapd[6000]: <= bdb_equality_candidates: (uidNumber) not indexed

具体的には ldapmodify で ldif を読ませる.

http://blog.remibergsma.com/2012/03/05/howto-solve-openldap-bdb_equality_candidates-errors/ にあるように /etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif を直接修正する手もあるが,Debian GNU/Linux の場合 /etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif の冒頭に以下のように書かれていて,ldapmodify を使うことになっている.

# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.

Related articles