Re: Check for write access on attributes

[email protected] (Chris Ridd)
Newsgroups perl.ldap
Message-ID <[email protected]>
On 28 Aug 2010, at 21:03, Kilian Röhner wrote:

> Hi,
> 
> when i'm trying to modify an attribute of an entry, i am not allow to
> modify, the update method gives me of course an "Insufficent Access Error".
> 
> I want to prevent that, so my question is: How can i check _before_
> doing the modify, if i am allowed to do it?
> 
> Or an other way: Is there a possibility, that the search method returns
> only those attributes, i am allowed to modify?

Check if your server vendor has implemented the X.500 "modifyRightsRequest" feature in LDAP (eg as an LDAP control), as that does exactly what you want.

Cheers,

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.