© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
B. Varanasi, A. SaccoPractical Spring LDAPhttps://doi.org/10.1007/979-8-8688-0002-3_5

5. Advanced Spring LDAP

Balaji Varanasi1   and Andres Sacco2
(1)
Salt Lake City, UT, USA
(2)
Buenos Aires, Buenos Aires, Argentina
 

JNDI Object Factories

JNDI provides the notion of object factories, which makes dealing with LDAP information easier. As the name suggests, an object factory transforms directory information into meaningful objects for the application. For example, object factories can have a search operation return object instances like Patron or Employee instead of plain javax.naming.NamingEnumeration.

Figure 5-1 depicts the flow involved when an application ...

Get Practical Spring LDAP: Using Enterprise Java-Based LDAP in Spring Data and Spring Framework 6 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.