[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapmodify replace olcAccess



Ð ÐÑÐ, 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?
> 
> 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
> -

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
-