Forums Register Login

LDAP search returns collection of Attributes objects

+Pie Number of slices to send: Send
Hello,
I am new to LDAP. I am also new to accessing LDAP using JNDI.
When using InitialLdapContext.search(base, 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.
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 579 times.
Similar Threads
LDAP search in "lower" ou ?
iPlanet & LDAP
LDAP: error
Getting the mail group from LDAP
how to get ldap list of users belongs to a group using java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:33:03.