From 9b6dfe96f8d0e0c92c4fdbf3f65459271bca425c Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Mon, 07 Apr 2008 12:50:35 +0000
Subject: [PATCH] Fix for issue #2270 (export-ldif doesn't exclude operational attributes when it's a task)

---
 opends/src/server/org/opends/server/tools/ExportLDIF.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/ExportLDIF.java b/opends/src/server/org/opends/server/tools/ExportLDIF.java
index 5e48861..9046833 100644
--- a/opends/src/server/org/opends/server/tools/ExportLDIF.java
+++ b/opends/src/server/org/opends/server/tools/ExportLDIF.java
@@ -467,6 +467,15 @@
       attributes.add(
               new LDAPAttribute(ATTR_TASK_EXPORT_WRAP_COLUMN, values));
     }
+
+    if (excludeOperationalAttrs.isPresent())
+    {
+      values = new ArrayList<ASN1OctetString>(1);
+      values.add(new ASN1OctetString("false"));
+      attributes.add(
+          new LDAPAttribute(ATTR_TASK_EXPORT_INCLUDE_OPERATIONAL_ATTRIBUTES,
+              values));
+    }
   }
 
   /**

--
Gitblit v1.10.0