From 764c819f288e77bbe3c299042288a96ca06a5f56 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 02 Jun 2008 20:44:47 +0000
Subject: [PATCH] Fix for issue 3311 (import-ldif --templateFile does not work when the server is  running) The fix consists on not assuming that the ldif file path is required to launch an import (the ds-task-import task definition has been modified for this) and allowing to create a task that imports contents based on a  template.

---
 opendj-sdk/opends/resource/schema/02-config.ldif |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/resource/schema/02-config.ldif b/opendj-sdk/opends/resource/schema/02-config.ldif
index 3646c9d..68f5dee 100644
--- a/opendj-sdk/opends/resource/schema/02-config.ldif
+++ b/opendj-sdk/opends/resource/schema/02-config.ldif
@@ -846,6 +846,14 @@
   NAME 'ds-task-import-ldif-file'
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
   X-ORIGIN 'OpenDS Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.26027.1.1.459
+  NAME 'ds-task-import-template-file'
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
+  X-ORIGIN 'OpenDS Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.26027.1.1.460
+  NAME 'ds-task-import-random-seed'
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  X-ORIGIN 'OpenDS Directory Server' )
 attributeTypes: ( 1.3.6.1.4.1.26027.1.1.170
   NAME 'ds-task-import-append'
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
@@ -2849,7 +2857,6 @@
   NAME 'ds-task-import'
   SUP ds-task
   STRUCTURAL
-  MUST ds-task-import-ldif-file
   MAY ( ds-task-import-append $
         ds-task-import-replace-existing $
         ds-task-import-include-branch $
@@ -2858,6 +2865,9 @@
         ds-task-import-exclude-attribute $
         ds-task-import-include-filter $
         ds-task-import-exclude-filter $
+        ds-task-import-ldif-file $
+        ds-task-import-template-file $
+        ds-task-import-random-seed $
         ds-task-import-reject-file $
         ds-task-import-overwrite-rejects $
         ds-task-import-skip-schema-validation $

--
Gitblit v1.10.0