Hi quanah!
My apologies for waste your time...
I have been used to create shell scripts to automate the tutorials I am working on.
So, when I need to create a file for some purpose I use the construction:
Code:
echo "
blah blah blah
" | tee /path/to/file
The problem that I spotted only today is that when somewere between the opening quote and the ending quote there is others quotes they are removed...
So, the code:
Code:
dn: olcDatabase={2}hdb,cn=config
changetype:modify
delete: olcAccess
olcAccess: {9}to attrs=entry by dn.children="cn=admins,cn=zimbra" write by * read
-
add: olcAccess
olcAccess: {9}to attrs=entry by dn.children="cn=admins,cn=zimbra" write by dn.exact="uid=zmposixroot,cn=appaccts,cn=zimbra" write by * read
dn: olcDatabase={2}hdb,cn=config
changetype:modify
add: olcAccess
olcAccess: {10}to dn.subtree="dc=zimbra,dc=example,dc=com" by dn.children="cn=admins,cn=zimbra" write by dn.exact="uid=zmposixroot,cn=appaccts,cn=zimbra" write by dn.exact="uid=zmposix,cn=appaccts,cn=zimbra" read by * none
olcAccess: {11}to dn.subtree="ou=machines,dc=zimbra,dc=example,dc=com" by dn.children="cn=admins,cn=zimbra" write by dn.exact="uid=zmposixroot,cn=appaccts,cn=zimbra" write by dn.exact="uid=zmposix,cn=appaccts,cn=zimbra" read by * none
olcAccess: {12}to dn.subtree="ou=groups,dc=zimbra,dc=example,dc=com" by dn.children="cn=admins,cn=zimbra" write by dn.exact="uid=zmposixroot,cn=appaccts,cn=zimbra" write by dn.exact="uid=zmposix,cn=appaccts,cn=zimbra" read by * none
olcAccess: {13}to dn.subtree="ou=people,dc=zimbra,dc=example,dc=com" by dn.children="cn=admins,cn=zimbra" write by dn.exact="uid=zmposixroot,cn=appaccts,cn=zimbra" write by dn.exact="uid=zmposix,cn=appaccts,cn=zimbra" read by * none become
Code:
dn: olcDatabase={2}hdb,cn=config
changetype:modify
delete: olcAccess
olcAccess: {9}to attrs=entry by dn.children=cn=admins,cn=zimbra write by * read
-
add: olcAccess
olcAccess: {9}to attrs=entry by dn.children=cn=admins,cn=zimbra write by dn.exact=uid=zmposixroot,cn=appaccts,cn=zimbra write by * read
dn: olcDatabase={2}hdb,cn=config
changetype:modify
add: olcAccess
olcAccess: {10}to dn.subtree=dc=zimbra,dc=example,dc=com by dn.children=cn=admins,cn=zimbra write by dn.exact=uid=zmposixroot,cn=appaccts,cn=zimbra write by dn.exact=uid=zmposix,cn=appaccts,cn=zimbra read by * none
olcAccess: {11}to dn.subtree=ou=machines,dc=zimbra,dc=example,dc=com by dn.children=cn=admins,cn=zimbra write by dn.exact=uid=zmposixroot,cn=appaccts,cn=zimbra write by dn.exact=uid=zmposix,cn=appaccts,cn=zimbra read by * none
olcAccess: {12}to dn.subtree=ou=groups,dc=zimbra,dc=example,dc=com by dn.children=cn=admins,cn=zimbra write by dn.exact=uid=zmposixroot,cn=appaccts,cn=zimbra write by dn.exact=uid=zmposix,cn=appaccts,cn=zimbra read by * none
olcAccess: {13}to dn.subtree=ou=people,dc=zimbra,dc=example,dc=com by dn.children=cn=admins,cn=zimbra write by dn.exact=uid=zmposixroot,cn=appaccts,cn=zimbra write by dn.exact=uid=zmposix,cn=appaccts,cn=zimbra read by * none Pay attention, the inside quotes were removed by the
echo command.
Little detail made all difference...
