Lukas Kubin writes:
I need to limit access to mail-related attributes of my users' tree. I created the following acl entries:
access to dn="ou=(groups|users|services),dc=one,dc=two,dc=com$$" attrs=mail by dn="cn=admin,dc=two,dc=com$$" write by self write by dn.base="uid=mailBrowser,ou=system,dc=one,dc=two,dc=com" read by dn.base="uid=usersBrowser,ou=system,dc=one,dc=two,dc=com" read
access to dn="ou=(groups|users|services),dc=one,dc=two,dc=com$$" by dn="cn=admin,dc=two,dc=com$$" write by dn.base="uid=usersBrowser,ou=system,dc=one,dc=two,dc=com" read by self read
But I still cannot make user "mailBrowser" to browse the attribute "mail". It cannot access it unless it is given same privileges as user "usersBrowser" has. But it can see all other attributes then.
I see what you are trying to do now. The problem is, a user can't read an attribute unless it also have access to the entry which contains that attribute.
You can grant mailBrowser 'entry' access, which just grants access to the entry without granting access to the attributes in it. I'm not sure just what 'entry' access allows mailBrowser to do with the entry, but at least it's more restrictive than giving mailBrowser full access:
access to dn.regex="ou=(groups|users|services),dc=one,dc=two,dc=com$$" attrs=entry,objectClass by dn.exact="cn=admin,dc=two,dc=com" write by self read by dn.exact="uid=mailBrowser,ou=system,dc=one,dc=two,dc=com" read by dn.exact="uid=usersBrowser,ou=system,dc=one,dc=two,dc=com" read
access to dn.regex="ou=(groups|users|services),dc=one,dc=two,dc=com$$" attrs=mail by dn.exact="cn=admin,dc=two,dc=com" write by self write by dn.exact="uid=mailBrowser,ou=system,dc=one,dc=two,dc=com" read by dn.exact="uid=usersBrowser,ou=system,dc=one,dc=two,dc=com" read
access to dn.regex="ou=(groups|users|services),dc=one,dc=two,dc=com$$" by dn.exact="cn=admin,dc=two,dc=com" write by dn.exact="uid=usersBrowser,ou=system,dc=one,dc=two,dc=com" read by self read
lukas
-- Lukas Kubin
phone: +420596398275 email: kubin@opf.slu.cz
Information centre The School of Business Administration in Karvina Silesian University in Opava Czech Republic http://www.opf.slu.cz
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature