Покотиленко Костик wrote:
В Вто, 22/10/2013 в 18:37 -0700, Daniel Jung пишет:
> Hi all,
>
> Is it possible to use the replace the instead of delete then add again
> for olcAccess?
Why didn't you just try it out and see for yourself?
>
> dn: olcDatabase={2}hdb,cn=config
> changetype: modify
> replace: olcDbCacheSize
> olcDbCacheSize: 10240
> -
> replace: olcAccess
> olcAccess: {0}to dn.base="" attrs=namingContexts by * none
> olcAccess: {1}to * by * read
> -
Yes, that would work. You don't need to provide the {x} prefixes unless you're
adding in a non-sequential order.
Possible. You replace all values with first one, then adding rest
values, like this:
dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcAccess
olcAccess: {0}to dn.base="" attrs=namingContexts by * none
-
add: olcAccess
olcAccess: {1}to * by * read
-
There's no need to break it up that way.
--
-- Howard Chu
CTO, Symas Corp.
http://www.symas.com
Director, Highland Sun
http://highlandsun.com/hyc/
Chief Architect, OpenLDAP
http://www.openldap.org/project/