From 2f4b3972a04e3ebf99ea7fd51c2b102cc8342582 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 23 Nov 2011 16:52:40 -0500 Subject: Add plugin framework to LDAP updates. 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. https://fedorahosted.org/freeipa/ticket/1789 https://fedorahosted.org/freeipa/ticket/1790 https://fedorahosted.org/freeipa/ticket/2032 --- install/tools/ipa-managed-entries | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'install/tools/ipa-managed-entries') diff --git a/install/tools/ipa-managed-entries b/install/tools/ipa-managed-entries index 24ba0e760..f3473e2b0 100755 --- a/install/tools/ipa-managed-entries +++ b/install/tools/ipa-managed-entries @@ -130,12 +130,10 @@ def main(): entries = conn.search_s( managed_entry_definitions_dn, ldap.SCOPE_SUBTREE, filter ) - managed_entries = [entry.dn for entry in entries] + managed_entries = [entry.cn for entry in entries] if managed_entries: print "Available Managed Entry Definitions:" for managed_entry in managed_entries: - rdn = DN(managed_entry) - managed_entry = rdn[0].value print managed_entry retval = 0 sys.exit() -- cgit