openldap slapd has the limitation that the number of indexed attributes must be less than 128.

Solution Unverified - Updated -

Issue

  • openldap slapd has the limitation that the number of indexed attributes must be less than 128.

  • hdb backend sample

/etc/openldap/slapd.conf:

include         /etc/openldap/schema/custom.schema
...skip
database        hdb
...skip
index attr1,attr2,attr3... attr128 eq,pres

ldapadd fails with the output error:

ldap_add: Other (e.g., implementation specific) error (80)
    additional info: index generation failed

and the syslog:

bdb_index_read: Could not open DB attr127
  • mdb backend sample

/etc/openldap/slapd.conf:

include         /etc/openldap/schema/custom.schema
...skip
database        mdb
...skip
index attr1,attr2,attr3... attr128 eq,pres

slapd fails to start with the syslog error:

 mdb_attr_dbs: database "dc=example,dc=com": mdb_dbi_open(attr127) failed: MDB_DBS_FULL: Environment maxdbs limit reached (-30791).
backend_startup_one (type=mdb, suffix="dc=example,dc=com"): bi_db_open failed! (-30791)

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • openldap-servers

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In