From 43e9c7913fc664b725e167090fe6d389a4558315 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Jun 2007 14:43:45 +0000
Subject: [PATCH] The following commit adds all the code necessary to be able to configure replication using the setup.
---
opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java b/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java
index 22c9722..d7b366b 100644
--- a/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java
+++ b/opends/src/statuspanel/org/opends/statuspanel/ConfigFromLDAP.java
@@ -835,17 +835,7 @@
private String getFirstValue(SearchResult entry, String attrName)
throws NamingException
{
- String v = null;
- Attributes attrs = entry.getAttributes();
- if (attrs != null)
- {
- Attribute attr = attrs.get(attrName);
- if ((attr != null) && (attr.size() > 0))
- {
- v = (String)attr.get();
- }
- }
- return v;
+ return Utils.getFirstValue(entry, attrName);
}
private Set<String> getValues(SearchResult entry, String attrName)
--
Gitblit v1.10.0