Use of SLAPI_PLUGIN_BE_POST_MODIFY_FN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric wrote:
> I would like to perform an action if and only if a database operation succeeds,
You can do this.
> as well as revert that database operation if the action fails.
You can't do this.  That is, you can't revert another prior operation.
> From the documentation I understand I should wrap both in a transaction and implement it through these parameters: SLAPI_PLUGIN_BE_POST_MODIFY_FN, SLAPI_PLUGIN_BE_POST_ADD_FN, SLAPI_PLUGIN_BE_POST_DELETE_FN.
>   
It might be possible, but you'd have to hack the database code in order 
to get all of your operations into a single database transaction.  BE 
plugins are called inside the database lock, so you can be assured that 
your code will be called with the database in a consistent state, but 
you can't use them to add other operations to the transaction.
> However I'm not sure how to write that transaction. Is there a code sample? How should I configure the plugin -- nsslapd-plugintype: postperation doesn't seem to be the right type...
>
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3258 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20080623/23d04b23/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux