为什么当索引实际上存在时,slapd 会说“bdb_equality_candidates:(objectClass)未编入索引”?

为什么当索引实际上存在时,slapd 会说“bdb_equality_candidates:(objectClass)未编入索引”?

2.4.31-1+nmu2ubuntu8.3在 Ubuntu 14.04 上安装了 slapd,并作为主服务器运行到辅助同步。它对所有 LDAP 事物都运行良好,但我时不时会注意到这些错误/var/log/debug

May 19 09:19:01 ldap1 slapd[9507]: <= bdb_equality_candidates: (uid) not indexed
May 19 09:20:01 ldap1 slapd[9507]: <= bdb_equality_candidates: (objectClass) not indexed
May 19 09:20:01 ldap1 slapd[9507]: <= bdb_equality_candidates: (objectClass) not indexed
May 19 09:20:01 ldap1 slapd[9507]: <= bdb_equality_candidates: (uid) not indexed
May 19 09:20:01 ldap1 slapd[9507]: <= bdb_equality_candidates: (objectClass) not indexed
May 19 09:20:01 ldap1 slapd[9507]: <= bdb_equality_candidates: (objectClass) not indexed
May 19 09:20:01 ldap1 slapd[9507]: <= bdb_equality_candidates: (uid) not indexed

这些索引不是已经存在了吗(通过创建https://wiki.debian.org/LDAP/OpenLDAPSetup)?运行时我可以看到它们slapcat -n 0。我需要为主服务器和从服务器创建它们吗?(条目olcDatabase={2}/var/lib/ldap/accesslog似乎表明它们仅存在于从服务器设置中)

dn: olcDatabase={1}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcDbDirectory: /var/lib/ldap
...
olcDbIndex: entryCSN eq
olcDbIndex: entryUUID eq
...
dn: olcDatabase={2}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {2}hdb
olcDbDirectory: /var/lib/ldap/accesslog
olcSuffix: cn=accesslog
olcRootDN: cn=admin,dc=xxxxxx,dc=xxxxx,dc=xxx
olcDbIndex: default eq
olcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart
olcDbIndex: entryUUID eq
olcDbIndex: memberUid eq
olcDbIndex: uniqueMember eq
olcDbIndex: cn pres,sub,eq
olcDbIndex: sn pres,sub,eq
olcDbIndex: uid pres,sub,eq
olcDbIndex: displayName pres,sub,eq
olcDbIndex: default sub
olcDbIndex: uidNumber eq
olcDbIndex: gidNumber eq
olcDbIndex: mail,givenName eq,subinitial
olcDbIndex: dc eq
structuralObjectClass: olcHdbConfig

相关内容