[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
overlay: How to not apply attribute modification to background ?
- To: openldap-technical@openldap.org
- Subject: overlay: How to not apply attribute modification to background ?
- From: Lucas Brasilino <lucas.brasilino@gmail.com>
- Date: Wed, 25 Aug 2010 08:43:47 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=w1C5cG8G2FTIBKUs4MHf7O6Nv//omiHfIMopqyNfz4M=; b=fofstpTTYnn/G8UPtvLtGGU8cfsvfTNz9o0Fv7EV9elKMzfC4NBXbtfR8p62jPDy5f fhbtT3GMdne7M0xEUrIJeTA2Ty4yuUzaj7GP2PbmRzmwT7c48AEhMc8+t6eVVhvsac63 a0uhMIlgEABW4gyaG+dn57FnlTj7LXHf3q14I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=w9qeUQ8PZq2s9rxKQYVP+kz+m3ciTpSlxu9Y5h5cexQtoOCBZCIYeUxAP+9WSLfK4K x5cLMU3bUYwi8GlhI+W4joA5TkzD3gKvoiY8zHgE3Ds47y2up9eHFzuWewQqRO6ziOb/ ErPyJV4QLDiXkMt3BDMRlI9Y3eYNiQe9um1IU=
Hi
I'm writing an overlay which it's principal function is being called
on 'modify' operation. This
function basically see if a given attribute is being modified. If so,
it pass it's value to an external
daemon through an unix domain socket to store this value in an
external database.
Of course, when the 'modify' callback ends with SLAP_CB_CONTINUE, the operation
continues and the new value is committed to background. This is my
problem, I don't want
to really modify the attribute value at background....
So, Is there a way to 'abort' modify operation in my overlay without
stopping to pass control
to other overlays?
I saw there's others return values from callbacks, as SLAP_CB_BYPASS
and SLAP_CB_FREEME
but I'm not sure about it... I guess SLAP_CB_BYPASS do the trick, but
I'm not sure.
Thanks a lot in advance
Lucas Brasilino