𝔖 Scriptorium
✦   LIBER   ✦

📁

Practical Spring LDAP: Using Enterprise Java-Based LDAP in Spring Data and Spring Framework 6

✍ Scribed by Balaji Varanasi, Andres Sacco


Publisher
Apress
Year
2023
Tongue
English
Leaves
332
Edition
2
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


This revised edition is your practical, hands-on guide to developing Java-based enterprise applications with big data or batches of data using the Spring LDAP and the Spring Data LDAP frameworks. The book covers these popular Spring project modules and explains the purpose and fundamental concepts of LDAP before giving a comprehensive tour of the latest version of Spring LDAP and Spring Data LDAP as found in Spring Framework 6. 
The book provides a detailed treatment of LDAP controls and the new features of Spring LDAP such as Object Directory Mapping and LDIF parsing. LDAP has become the de facto standard for storing and accessing information in enterprises. Despite its widespread adoption, developers often struggle when it comes to using this technology effectively. The traditional Java LDAP and JNDI approaches have proven to be painful and have resulted in complex, less modular applications. The Spring LDAP framework provides an ideal alternative.
After reading and using this book, you'll come away with a level of comfort for working with large batches of data or big data in your enterprise Spring applications development.
What You'll Learn

  • Explore "What is Java LDAP?" and understand the Spring LDAP and Spring Data LDAP frameworks
  • Search LDAP resources
  • Sort and page your LDAP results
  • Dive into object directory mapping
  • Handle LDAP transactions and more
Who This Book Is For
Intermediate to advanced Java and Spring software developers; programmers with at least some prior experience in Java, especially the Spring Framework

✦ Table of Contents


Table of Contents
About the Authors
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Introduction to LDAP
LDAP Overview
Directory vs. Database
Information Model
Object Classes
Directory Schema
Naming Model
Functional Model
Security Model
LDIF Format
LDAP History
LDAP Vendors
Sample Application
Summary
Chapter 2: Java Support for LDAP
LDAP Using JNDI
Connect to LDAP
LDAP Operations
Closing Resources
Creating a New Entry
Updating an Entry
Removing an Entry
Searching Entries
Check How the Operations Work
JNDI Drawbacks
Summary
Chapter 3: Introducing Spring LDAP
Motivation
Documentation and Source Code Spring LDAP
Spring LDAP Packaging
Installing Spring LDAP Using Maven
Spring LDAP Archetypes
Creating Projects Using IntelliJ
Spring LDAP Hello World
Spring ApplicationContext
Spring-Powered Search Client
Spring LdapTemplate Operations
Add Operation
Modify Operation
Deleting Operation
Summary
Chapter 4: Testing LDAP Code
Concepts About Testing
Unit Testing
Mock Testing
Integration Testing
Libraries to Do Tests
JUnit
Mockito
Testcontainers
Creating the Tests
Mocking the Templates
Testing Using Embedded Server
Moving to Tests with Testcontainers
Summary
Chapter 5: Advanced Spring LDAP
JNDI Object Factories
Spring and Object Factories
DAO Implementation Using Object Factory
Implementing Finder Methods
Create Method
Update Method
Delete Method
Summary
Chapter 6: Searching LDAP
LDAP Search Criteria
Base Parameter
Scope Parameter
Filter Parameter
Optional Parameters
LDAP Injection
Spring LDAP Filters
EqualsFilter
LikeFilter
PresentFilter
NotPresentFilter
Not Filter
GreaterThanOrEqualsFilter
LessThanOrEqualsFilter
AndFilter
OrFilter
HardcodedFilter
WhitespaceWildcardsFilter
Handling Special Characters
LDAP Query Builder Parameters
Summary
Chapter 7: Sorting and Paging Results
LDAP Controls
Identifying Supported Controls
JNDI and Controls
Spring LDAP and Controls
Sort Control
Implementing Custom DirContextProcessor
Paged Search Controls
Summary
Chapter 8: Object-Directory Mapping
Spring ODM Basics
ODM Metadata
ODM Service Class
Creating Custom Converter
Summary
Chapter 9: LDAP Transactions
Transaction Basics
Local vs. Global Transactions
Programmatic vs. Declarative Transactions
Programmatically
Declaratively
Spring Transaction Abstraction
Declarative Transactions Using Spring
LDAP Transaction Support
Spring LDAP Transaction Support
Compensating Transactions
Summary
Chapter 10: Odds and Ends
Authentication Using Spring LDAP
Handling Authentication Exceptions
Parsing LDIF Data
LDAP Connection Pooling
Built-In Connection Pooling
Spring LDAP Connection Pooling
Pool Validation
Summary
Appendix A: Setting Up Environment Tools
Install Java
Install Maven
Install Git
Install IntelliJ
Install Docker
Appendix B: Recommended and Alternative Tools
IDEs
LDAP UI
Appendix C: Set Up LDAP Server
LDAP Server Setup
Installing Apache Directory Studio
Loading Test Data
Appendix D: Opening a Project
Appendix E: Further Reading
General
Index


📜 SIMILAR VOLUMES


Practical Spring LDAP: Using Enterprise
✍ Balaji Varanasi, Andres Sacco 📂 Library 📅 2023 🏛 Apress 🌐 English

<span>This revised edition is your practical, hands-on guide to developing Java-based enterprise applications with big data or batches of data using the Spring LDAP and the Spring Data LDAP frameworks. The book covers these popular Spring project modules and explains the purpose and fundamental conc

Practical Spring LDAP: Enterprise Java L
✍ Balaji Varanasi 📂 Library 📅 2013 🏛 Apress 🌐 English

<p><strong><em>Practical Spring LDAP</em></strong> is your guide to developing Java-based enterprise applications using the Spring LDAP Framework. This book explains the purpose and fundamental concepts of LDAP before giving a comprehensive tour of the latest version, Spring LDAP 1.3.2. It provides

Practical Spring LDAP: Enterprise Java L
✍ Balaji Varanasi 📂 Library 📅 2013 🏛 Apress 🌐 English

<p><strong><em>Practical Spring LDAP</em></strong> is your guide to developing Java-based enterprise applications using the Spring LDAP Framework. This book explains the purpose and fundamental concepts of LDAP before giving a comprehensive tour of the latest version, Spring LDAP 1.3.2. It provides

Practical Spring LDAP: Enterprise Java L
✍ Balaji Varanasi (auth.) 📂 Library 📅 2013 🏛 Apress 🌐 English

Practical Spring LDAP is your guide to developing Java-based enterprise applications using the Spring LDAP Framework. This book explains the purpose and fundamental concepts of LDAP before giving a comprehensive tour of the latest version, Spring LDAP 1.3.2. It provides a detailed treatment of LDAP

Introducing Spring Framework 6: Learning
✍ Felipe Gutierrez, Joseph B. Ottinger 📂 Library 📅 2022 🏛 Apress 🌐 English

<span>Spring Framework 6 remains - by far - the leading de-facto "out of the box" practical Java meta application development framework for building complex enterprise, cloud-native applications as well as web applications and microservices. </span><span>Introducing Spring Framework 6</span><span> i

Introducing Spring Framework 6: Learning
✍ Felipe Gutierrez, Joseph B. Ottinger 📂 Library 📅 2022 🏛 Apress 🌐 English

<span>Spring Framework 6 remains - by far - the leading de-facto "out of the box" practical Java meta application development framework for building complex enterprise, cloud-native applications as well as web applications and microservices. </span><span>Introducing Spring Framework 6</span><span> i