Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LDAP search returns collection of Attributes objects

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