question on usage of Proxy Authorization rights

Hi,

I have never used Proxy authorization rights. I have a question related to the Proxy Authorization rights. I have gone through the docs to understand how to use Proxy Authorization ACIs. But I have some doubt on its usage.

Lets say I have two special entries

cn=SP1,ou=admin,dc=foo,dc=com and cn=SP2,ou=admin,dc=foo,dc=com

Each of these entries have different special access rights through ACIs to access different set of attributes say

"cn=SP1,ou=admin,dc=foo,dc=com" canREAD/SEARCH toattribute1 andattribute2 under branchou=people,dc=foo,dc=com

"cn=SP2,ou=admin,dc=foo,dc=com" canWRITE toattribute1 andattribute2 under branchou=people,dc=foo,dc=com

I have another entry:

cn=U1,ou=people,dc=foo,dc=com

As per my understanding if I need the entry"cn=U1,ou=people,dc=foo,dc=com" toREAD/SEARCHattribute1 andattribute2 through proxy control I would have to write the following ACI:

(target="ldap:///ou=people,dc=foo,dc=com")

(targerattr="attribute1 || attribute2") (version 3.0 acl "allow proxy access";

allow (proxy) userdn="ldap:///cn=U1,ou=people,dc=foo,dc=com";)

I think the entry "cn=U1,ou=people,dc=foo,dc=com" can also use the rights of "cn=SP2,ou=admin,dc=foo,dc=com" to perform WRITE operation on "attribute1 and attribute2" using

Proxy Authorization control by passing "cn=SP2,ou=admin,dc=foo,dc=com" as proxyid.

If this is correct then can anyone help how to allow only READ/SEARCH access to the attribute1 and attribute2 using Proxy Authorization rights.

Regards

Randip Malakar

[1712 byte] By [Randip_Malakara] at [2007-11-26 21:25:41]
# 1

Hi,

I don't think that the proxy rights can be specifically restricted to certain attributes, ie (targetattr should be '*' and not attribute1 || attribute2).

But your logic is correct.

When a client authenticated as cn=U1,ou=people,dc=foo,dc=com will issue a request with the Proxy Authz Control for user cn=SP1,ou=admin,dc=foo,dc=com, the access controls enforced will be the ones specifically for cn=SP1,ou=admin,dc=foo,dc=com (ie search /read on attribute1 and attribute2).

If the Proxy Authz Control contains cn=SP2,ou=admin,dc=foo,dc=com, the client will have write access on these attributes.

If the client, does not use the Proxy Authz Control for an operation, the access will be the ones permitted for the user cn=U1,ou=people,dc=foo,dc=com

I hope this helps.

Regards,

Ludovic

ludovicpa at 2007-7-10 3:05:56 > top of Java-index,Web & Directory Servers,Directory Servers...