This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

LDAP search returns collection of Attributes objects  RSS feed

Kjeld Sigtermans
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to LDAP. I am also new to accessing LDAP using JNDI.
When using, filter, searchControls), an enumeration of SearchResults is returned. Each SearchResult contains precisely one Attributes (plural) object, which in turn might contain one or more Attribute (singular) objects.
Why are the Attribute objects ordened in more than one Attributes objects? (and why are the Attributes objects wrapped in SearchResult objects?).
I'd expect just an enumeration of Attribute (singular) objects.., without the nested hierarchy of Attributes objects/SearchResult objects...??
Although there must be a good reason for this design.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!