[Freeipa-devel] [PATCH] 905 add plugin framework to updater

Rob Crittenden rcritten at redhat.com
Wed Nov 16 20:44:55 UTC 2011


There are two reasons for the plugin framework:
1. To provide a way of doing manual/complex LDAP changes without having
    to keep extending ldapupdate.py (like we did with managed entries).
2. Allows for better control of restarts.

There are two types of plugins, preop and postop. A preop plugin runs
before any file-based updates are loaded. A postop plugin runs after all 
file-based updates are applied.

A preop plugin may update LDAP directly or craft update entries to be 
applied with the file-based updates.

Either a preop or postop plugin may attempt to restart the dirsrv 
instance. The instance is only restartable if ipa-ldap-updater is being 
executed as root. A warning is printed if a restart is requested for a 
non-root user.

Plugins are not executed by default. This is so we can use ldapupdate to 
apply simple updates in commands like ipa-nis-manage.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-905-update.patch
Type: text/x-patch
Size: 46617 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20111116/8aa6f0c2/attachment.bin>


More information about the Freeipa-devel mailing list