src/com/netscape/admin/dirserv/panel/DSEntrySet.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit d77ff59e526e9e085f60f31a292d766512723338
Author: Noriko Hosoi <nhosoi(a)jiji.usersys.redhat.com>
Date: Fri Feb 4 17:59:41 2011 -0800
Bug 661116 - 389-console Configuration tab admin permissions
(nsslapd-referral ?) and folder not expending immediatly
https://bugzilla.redhat.com/show_bug.cgi?id=661116
Description: ds-console always expects nsslapd-referral in
cn=console, which is not true.
This patch appends the empty attribute value if the search
result does not contain expected attributes.
diff --git a/src/com/netscape/admin/dirserv/panel/DSEntrySet.java
b/src/com/netscape/admin/dirserv/panel/DSEntrySet.java
index c40247a..b01d5a6 100644
--- a/src/com/netscape/admin/dirserv/panel/DSEntrySet.java
+++ b/src/com/netscape/admin/dirserv/panel/DSEntrySet.java
@@ -185,7 +185,12 @@ public class DSEntrySet {
if (lda == null && entry != null) {
Debug.println( "DSEntrySet.getAttributes(): failed to get "
+
"attribute " + attrName + " in " +
entry.getDN());
- haveAllAttrs = false; // missing at least one attr value
+ // missing at least one attr value
+ // haveAllAttrs = false;
+ // Instead of returning an auth error, create an empty attr
+ Debug.println( "DSEntrySet.getAttributes(): created " +
+ "attribute " + attrName + " in " +
entry.getDN());
+ lda = new LDAPAttribute(attrName, "");
}
// loop through all of the DSEntrys which