Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Introduction to LDAP
LDAP Overview
Information Model
Object Classes
Directory Schema
Naming Model
Functional Model
Security Model
LDAP Vendors
LDIF Format
Sample Application
Summary
Chapter 2: Java Support for LDAP
LDAP Using JNDI
Connecting to LDAP
LDAP Operations
Closing Resources
Creating a New Entry
Updating an Entry
Removing an Entry
Searching Entries
JNDI Drawbacks
Chapter 3: Introducing Spring LDAP
Motivation
Obtaining Spring LDAP
Spring LDAP Packaging
Downloading Spring LDAP Source
Installing Spring LDAP Using Maven
Installing Maven
Spring LDAP Archetypes
Setting Up Spring IDE
Creating Projects Using STS
LDAP Server Setup
Installing Apache Directory Studio
Loading Test Data
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
Unit Testing
Mock Testing
Integration Testing
JUnit
Testing Using Embedded LDAP Server
Setting Up Embedded ApacheDS
Creating Embedded Context Factory
Mocking LDAP Using EasyMock
Test Data Generation
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
Spring LDAP Filters
EqualsFilter
LikeFilter
PresentFilter
NotPresentFilter
Not Filter
GreaterThanOrEqualsFilter
LessThanOrEqualsFilter
AndFilter
OrFilter
HardcodedFilter
WhitespaceWildcardsFilter
Creating Custom Filters
Handling Special Characters
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
Configuration Simplifications
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
Conclusion
Index
← Prev
Back
Next →
← Prev
Back
Next →