389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
210 stars 90 forks source link

Unused attributes reported when searching mdb config #6291

Open jchapma opened 1 month ago

jchapma commented 1 month ago

Issue Description With LMDB enabled, a search of the config subtree returns attributes that are not used, so their value is NaN.

Package Version and Platform:

Steps to Reproduce

  1. Setup an instance with the default mdb DB
  2. Search config space
    sudo ldapsearch -H ldap://localhost:389  -D  "cn=dm" -W -b "cn=mdb,cn=config,cn=ldbm database,cn=plugins,cn=config"
  3. Notice some attribute values as NaN
    # mdb, config, ldbm database, plugins, config
    dn: cn=mdb,cn=config,cn=ldbm database,cn=plugins,cn=config
    objectClass: extensibleobject
    objectClass: top
    cn: mdb
    nsslapd-dbcachesize: NaN
    nsslapd-db-locks: NaN
    nsslapd-mdb-max-size: 21474836480
    nsslapd-mdb-max-readers: 0
    nsslapd-mdb-max-dbs: 512
    nsslapd-db-durable-transaction: on
    nsslapd-search-bypass-filter-test: on
    nsslapd-serial-lock: on

Expected results Unused attributes should be filtered out.

Additional info This doesnt happen over ldapi

sudo dsconf ldapi://%2fvar%2frun%2fslapd-inst01.socket backend config get | grep dncache