A portable way would be to attempt a ('harmless') write, for example, adding a known trash value to a multivalued attribute. If it succeeds, just undo it. This doesn't get to the full essence of the issue, but is simple.
--Jim Harle


Chris Ridd wrote:

On 15/10/03 11:48 am, Tarjei Huse <[EMAIL PROTECTED]> wrote:



hi,

How can I check if I have write access to an entry through perl-ldap?

I = the user whom I used to bind to the directory.


Tarjei



There is no standard way to do this in LDAP. If the server is based on X.500, ask the vendor if they support the modifyRightsRequest critical extension, and expose it to LDAP clients. If the server isn't X.500-based, they might have some proprietary extension which will do something similar. Again, ask your server vendor.

If the vendor needs you to use a control/extended op, then you should find
that you can create the right sort of object using perl-ldap. If you get
stuck, ask here for help :-)

Cheers,

Chris





Reply via email to