On Thu, Mar 20, 2025 at 08:08:34AM +0000, Windl, Ulrich wrote: > I had an idea for a new feature of slapcat (maybe ldapsearch, too), > but I don't know where to file such. > > "Diff-friendly output format" > > The modifiersName did not change, but its position had moved in > output. In a diff-friendly format the position would not change. > Obviously that could be done by sorting the output by attribute names > (which would also help to locate a specific attribute), but it would > have performance impacts, obviously. > > Another related option is attributes with a list of sub-attributes > (name-value pairs), like syncrepl: > In standard format the lines are wrapped, and with "-o ldif-wrap=no" > you get one long line. > For diff-friendliness may idea was to optionally wrap such name-value > pairs after each pair, and if a single one exceeds the standard lengh, > it would be wrapped still. > > Do you think it's a useful enhancement? > I must admit I played with the idea implementing it myself, but after > having had a look at the source of slapcat, it looked more low-level > than I had expected, so I had no idea where to start...
Hi Ulrich, the test suite needs it already, so there's a tool that does what I think you're suggesting in tests/progs: https://git.openldap.org/openldap/openldap/-/blob/master/tests/progs/ldif-filter.c Regards, -- Ondřej Kuzník Senior Software Engineer Symas Corporation http://www.symas.com Packaged, certified, and supported LDAP solutions powered by OpenLDAP
