From 97024e80c3bdb5ad19b0eb42137f6e32f5f725b2 Mon Sep 17 00:00:00 2001
From: mrossign <mrossign@localhost>
Date: Tue, 22 Sep 2009 12:35:52 +0000
Subject: [PATCH] Fix for issue 4239 setup on Windows 2008 set LDAP ds-cfg-listen-port to 389
---
opends/src/server/org/opends/server/core/PluginConfigManager.java | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/PluginConfigManager.java b/opends/src/server/org/opends/server/core/PluginConfigManager.java
index 92cd78e..3213d0e 100644
--- a/opends/src/server/org/opends/server/core/PluginConfigManager.java
+++ b/opends/src/server/org/opends/server/core/PluginConfigManager.java
@@ -91,6 +91,7 @@
private DirectoryServerPlugin[] postDisconnectPlugins;
private DirectoryServerPlugin[] ldifImportPlugins;
private DirectoryServerPlugin[] ldifImportEndPlugins;
+ private DirectoryServerPlugin[] ldifImportBeginPlugins;
private DirectoryServerPlugin[] ldifExportPlugins;
private DirectoryServerPlugin[] preParseAbandonPlugins;
private DirectoryServerPlugin[] preParseAddPlugins;
@@ -176,6 +177,7 @@
postDisconnectPlugins = new DirectoryServerPlugin[0];
ldifImportPlugins = new DirectoryServerPlugin[0];
ldifImportEndPlugins = new DirectoryServerPlugin[0];
+ ldifImportBeginPlugins = new DirectoryServerPlugin[0];
ldifExportPlugins = new DirectoryServerPlugin[0];
preParseAbandonPlugins = new DirectoryServerPlugin[0];
preParseAddPlugins = new DirectoryServerPlugin[0];
@@ -426,6 +428,7 @@
case POSTDISCONNECT: return PluginType.POST_DISCONNECT;
case LDIFIMPORT: return PluginType.LDIF_IMPORT;
case LDIFIMPORTEND: return PluginType.LDIF_IMPORT_END;
+ case LDIFIMPORTBEGIN: return PluginType.LDIF_IMPORT_BEGIN;
case LDIFEXPORT: return PluginType.LDIF_EXPORT;
case PREPARSEABANDON: return PluginType.PRE_PARSE_ABANDON;
case PREPARSEADD: return PluginType.PRE_PARSE_ADD;
@@ -603,6 +606,11 @@
addPlugin(ldifImportEndPlugins, plugin, t,
pluginRootConfig.getPluginOrderLDIFImportEnd());
break;
+ case LDIF_IMPORT_BEGIN:
+ ldifImportBeginPlugins =
+ addPlugin(ldifImportBeginPlugins, plugin, t,
+ pluginRootConfig.getPluginOrderLDIFImportBegin());
+ break;
case LDIF_EXPORT:
ldifExportPlugins =
addPlugin(ldifExportPlugins, plugin, t,
@@ -1099,6 +1107,10 @@
case LDIF_IMPORT_END:
ldifImportEndPlugins = removePlugin(ldifImportEndPlugins, plugin);
break;
+ case LDIF_IMPORT_BEGIN:
+ ldifImportBeginPlugins =
+ removePlugin(ldifImportBeginPlugins, plugin);
+ break;
case LDIF_EXPORT:
ldifExportPlugins = removePlugin(ldifExportPlugins, plugin);
break;
@@ -1569,7 +1581,7 @@
-/**
+ /**
* Invokes the set of LDIF import plugins that have been configured in the
* Directory Server.
*
@@ -1651,6 +1663,24 @@
/**
+ * Invokes the LDIF import session initialization of LDIF import plugins that
+ * have been configured in the Directory Server.
+ *
+ * @param importConfig The LDIF import configuration used for the LDIF
+ * import session.
+ */
+ public void invokeLDIFImportBeginPlugins(
+ LDIFImportConfig importConfig)
+ {
+ for (DirectoryServerPlugin p : ldifImportBeginPlugins)
+ {
+ p.doLDIFImportBegin(importConfig);
+ }
+ }
+
+
+
+ /**
* Invokes the set of LDIF export plugins that have been configured in the
* Directory Server.
*
--
Gitblit v1.10.0