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 :-)
Regards
-- Richard Perini Ramico Australia Pty Ltd Sydney, Australia rpp@ramico.com.au ----------------------------------------------------------------------------- "The difference between theory and practice is that in theory there is no difference, but in practice there is"