From 94ab608bf26d8ef5fb477e6b7de0be679cfb90a1 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 02 May 2016 10:05:10 +0000
Subject: [PATCH] Fix for OPENDJ-2976: Allow access log filtering for rootDSE searches. The rootDSE has the empty string for DN. However representing an empty string in dsconfig is troublesome. The fix is to treat the string "" as a special case representing the rootDSE.
---
opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/TargetTestCase.java | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/TargetTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/TargetTestCase.java
index 8f1dea6..7c9f8fc 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/TargetTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/TargetTestCase.java
@@ -86,11 +86,14 @@
"uid=bjensen"
},
{
- "uid=dmiller, **, ou=branch level two, **, ou=aci branches, " +
- "dc=example,dc=com",
+ "uid=dmiller, **, ou=branch level two, **, ou=aci branches, dc=example,dc=com",
"uid=dmiller, ou=branch level three, ou=branch level two, " +
"ou=branch level one, ou=aci branches, dc=example,dc=com"
},
+ {
+ "\"\"",
+ ""
+ }
};
}
@@ -124,8 +127,7 @@
"sn=jensen+uid=bjensen,ou=people,dc=example,dc=com"
},
{
- "uid=dmiller, **, ou=Bad branch level, **, ou=aci branches, " +
- "dc=example,dc=com",
+ "uid=dmiller, **, ou=Bad branch level, **, ou=aci branches, dc=example,dc=com",
"uid=dmiller, ou=branch level three, ou=branch level two, " +
"ou=branch level one, ou=aci branches, dc=example,dc=com"
},
--
Gitblit v1.10.0