Then I expect you will have to do a delete index, add at index.
/Cole
On 14 March 2016 at 19:26, PenguinWhispererThe . < th3penguinwhisperer@gmail.com> wrote:
I tried exactly that notation however that replaced the whole entry (so only one index left). I only wanted to replace the 12th index. On Mar 14, 2016 15:12, "Cole" cole@opteqint.net wrote:
Hi, Yes, it should be possible, so from your first example:
dn: olcDatabase={2}mdb,cn=config changetype:modify add: olcAccess olcAccess: {0}full accessrule
Change that to:
dn: olcDatabase={2}mdb,cn=config changetype:modify replace: olcAccess olcAccess: {0}full accessrule
Notice the use of "replace" instead of "add".
Regards /Cole
On 14 March 2016 at 15:01, PenguinWhispererThe . < th3penguinwhisperer@gmail.com> wrote:
I was successfully able to modify the olcLimits and olcAccess.
What I still wonder if it's possible to just replace one index. I've tried but all the indexes got removed and replaced with the one I put.
Thanks in advance!
2016-03-11 16:27 GMT+01:00 Cole cole@opteqint.net:
Hi,
That is correct. Also if you leave out the {#} entry, the value will be added at the end of any current values.
I learnt most of these details from the zytrax book on openldap, as it contained non-trivial examples. This section: http://www.zytrax.com/books/ldap/ch6/slapd-config.html#use-security describes the {} functionality.
Regards /Cole
On 10 March 2016 at 22:56, PenguinWhispererThe . < th3penguinwhisperer@gmail.com> wrote:
That's completely missing the point of these ordering prefixes.
I honestly don't see a lot of mentioning about this except for replace and deletes. Maybe it was my use of keywords.
I did some tries but I failed. I couldn't find any clear examples on doing what I wanted. I mostly saw add/replace options but without the {} ordering. I'm very new to this.
I'll try again tomorrow.
So from the IETF I understand I should be using something like this to insert a row at the beginning:
dn: olcDatabase={2}mdb,cn=config changetype:modify add: olcAccess olcAccess: {0}full accessrule
Thanks for your responses! Greatly appreciated!
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 <#-600934978_1102690717_582214293_-541461954_-448044489_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
2016-03-10 18:39 GMT+01:00 Ryan Tandy ryan@nardis.ca:
On Thu, Mar 10, 2016 at 05:18:01PM +0100, PenguinWhispererThe . wrote:
> 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? >
You can add a new entry with the index {n} specified. Existing entries will be re-numbered (their index incremented) to make room.