--On Sunday, February 23, 2025 9:58 AM +1100 Richard Perini rpp@ramico.com.au wrote:
On Fri, Feb 21, 2025 at 12:09:18PM -0800, Quanah Gibson-Mount wrote:
--On Thursday, February 20, 2025 1:53 PM +1100 Richard Perini rpp@ramico.com.au wrote:
I'm sure this question has been asked before, but my googling has failed to find an answer:
How can I get a list of attribute indexes for our OpenLDAP instance? We're running version 2.4.57 (FreeBSD).
Indices are set in the slapd configuration, so you should look there. Either slapd.conf if you're doing the old method, or the cn=config database if you're doing the new style.
Thank you for the answer, yes we are using the "new style".
I found what I was looking for with
"slapcat -b cn=config | grep olcDbIndex | sort -u"
but I'd imagine there is a more elegant way of searching :-)
If you've configured your system so that the cn=config database is searchable via ldapsearch, you could just... ldapsearch.
--Quanah