+ sed -i 's/^\(olcDatabase: {-1}frontend\)/\0\nolcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break/' "${SLAPD_CONF}/cn=config/olcDatabase={-1}frontend.ldif"
+ sed -i 's/^\(olcDatabase: {0}config\)/\0\nolcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break/' "${SLAPD_CONF}/cn=config/olcDatabase={0}config.ldif"
I know this isn't new to this patch, but I think I need to teach someone about the sed 'a' command :)
This patch doesn't appear to clean up any previously-added olcAuthzRegexp lines, or previously-added olcAccess lines referencing localroot, so the resulting config will be different for users upgrading to lucid final from an earlier release, vs. users who have upgraded to lucid RC. Is this ok?
+ sed -i 's/^\(olcDatabase: {-1}frontend\ )/\0\nolcAccess : {0}to * by dn.exact= gidNumber= 0+uidNumber= 0,cn=peercred, cn=external, cn=auth manage by * break/' "${SLAPD_ CONF}/cn= config/ olcDatabase= {-1}frontend. ldif" )/\0\nolcAccess : {0}to * by dn.exact= gidNumber= 0+uidNumber= 0,cn=peercred, cn=external, cn=auth manage by * break/' "${SLAPD_ CONF}/cn= config/ olcDatabase= {0}config. ldif"
+ sed -i 's/^\(olcDatabase: {0}config\
I know this isn't new to this patch, but I think I need to teach someone about the sed 'a' command :)
This patch doesn't appear to clean up any previously-added olcAuthzRegexp lines, or previously-added olcAccess lines referencing localroot, so the resulting config will be different for users upgrading to lucid final from an earlier release, vs. users who have upgraded to lucid RC. Is this ok?