[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
How to obtain Operations Attributes
- To: openldap-technical@openldap.org
- Subject: How to obtain Operations Attributes
- From: Suneet Shah <suneetshah2000@gmail.com>
- Date: Sat, 19 Mar 2011 01:23:40 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=pzOxliE0k6KPrMkYS5dAnNVtKCCxPVFNjYgS4zNd3F0=; b=JzBlgr++Z88zPALambxOAQWINQjLCd0ucjK5aUaMOG2Wol5imjrkmJ83WIRlyGjl4o ZY8pL7B4i9CMWQNky4+u2vZuynAYY7G8T5pBfAc9b7XA49A3aQcaeXH1U15GV9Dl6nRw MTfrAemGXDnNj2BqPa7SIxeK/3vkWYCHNhxgg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=F5c8Q0rArHgW/abxCL/QlsovfrsqyRKdmWQ51l1HZQ3vsLMu3WgjZMFo0TwX9lbXrQ Q7gOFIuaBRzYo037Lu+vp+ts8vu+UD2bdB3tNgmlS9wxxPqxbZs2P2uYx6V+lf7gfPjL nyvNzRG96el34d5SaFzSKFiheAXgMAoLYwV6E=
Hello,
I am using the Java JDK 1.6.x to query ldap. I am using the query below. However, I need to be able to pull out the operational attributes as well. Any thoughts on how I can obtain the list of operational attributes without having to specify them?
SearchControls searchCtls = new SearchControls();
searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
NamingEnumeration results = ctx.search( config.getBaseDn(), searchFilter, searchCtls);
while (results != null && results.hasMore()) {
SearchResult sr = (SearchResult)results.next();
Attributes searchAttrs = sr.getAttributes();
if (searchAttrs != null ) {
NamingEnumeration values = searchAttrs.getAll();
while (values.hasMore()) {
javax.naming.directory.Attribute atr = (javax.naming.directory.Attribute)values.next();
thanks for your help