PenguinWhispererThe . wrote:
Good day to all,
I'm currently looking into openldap and want to do some changes on an existing openldap directory. I've been able to apply my changes using delete and add in an ldif.
For example: 10 olcLimits rules. Mine needs to be placed before the last olcLimit.
- Delete current last line (with {10} specificier)
- Add wanted line
- Add previously deleted line
This results in the intended config.
However this looks like a hassle to me. For example in the case I had to insert on the 5th line I would have to delete 5 lines first, then add the line I want and then again add those 5 lines. Or I should use replace for replacing the whole list (what's the correct terminology for a list with {0}, {1}, ... ?). I need to copy paste all that data over to just add 1 new line(in case of olcLimits and olcAccess).
I've been looking for examples for inserting in between but couldn't find any. Maybe I use the wrong keywords in our favorite search engine.
Is this deleting and adding or replacing the way to go to make these changes? Are there alternatives?
That's completely missing the point of these ordering prefixes.
https://tools.ietf.org/html/draft-chu-ldap-xordered-00