macOS / binaries /

slapindex

/usr/sbin/slapindex
Reindex entries in a SLAPD database

Slapindex is used to regenerate slapd indices based upon the current contents of a database. It opens the given database determined by the database number or suffix and updates the indices for all values of all attributes of all entries.

source: man