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?

Thanks in advance for your responses.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=oa-2115-f>
0
viruses found. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=oa-2115-f>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Reply via email to