directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Cataldo <tcata...@gmail.com>
Subject Re: ldap search problems against openldap
Date Thu, 11 Mar 2010 21:05:51 GMT
On Thu, Mar 11, 2010 at 9:55 PM, Kiran Ayyagari <ayyagarikiran@gmail.com> wrote:
> can you paste the code for your getDN() and cleanUp() methods too

	private String getDN(Cursor<SearchResponse> cursor) throws Exception {
		Entry entry = ((SearchResultEntry) cursor.get()).getEntry();
		DN dn = entry.getDn();
		return dn.toString();
	}

	private void cleanUp(Cursor<SearchResponse> cursor) {
		if (cursor != null) {
			try {
				cursor.close();
			} catch (Exception e) {
				logger.error("Error closing cursor");
			}
		}
	}

Mime
View raw message