To add an entry between {1} and {2}, add the new entry as {2}. OpenLDAP will bump {2} and {3} down a number and let the new entry become {2}.

Sent: Wed Sep 12 2012 16:45:13 GMT-0400 (EDT)
From: Aaron Bennett <abennett@clarku.edu>
To: openldap-technical@openldap.org <openldap-technical@openldap.org>
Subject: insert an olcAccess line in cn=config?

Hi,

 

This might be more of an Apache Directory Studio question, so please forgive me…

 

I’m using Apache Directory studio to edit cn=config and I have some lines like this:

 

olcAccess: {0}to attrs=foo by <stuff>

olcAccess: {1}to attrs=bar  by <stuff>

olcAccess: {2}to attrs=booboo <stuff>

olcAccess: {3}to * by <stuff> read

 

Order is important in these – so how do I add a value between {1} and {2}, for example?   If I add olcAccess: to mailattr by <stuff> read then it goes in as oldAccess: {4} and as I understand ACLs it will never get it because the preceding * will match first, right?

 

-          Aaron

 

 

---

Aaron Bennett

Manager of Systems Administration

Clark University ITS