Overview
Lightweight Directory Access Protocol (LDAP) is now a staple of enterprise and Internet software environments. Anyone involved with Internet development, where Java(TM) technology is prominent, or in enterprise information systems must understand how to use Java technology--especially the Directory SDK for Java--in order to unlock the power of LDAP.
Written by the designer of the Directory SDK for Java and by a leading implementor of directory-based solutions, LDAP Programming with Java(TM) is the first accurate, concise, and complete guide on accessing LDAP from Java applications. Assuming familiarity with Java programming, the book provides a comprehensive discussion of LDAP, from basic directory concepts to the most advanced techniques. It collects in one convenient resource the many innovative and experience-based techniques and approaches programmers have discovered for using the Directory SDK to solve LDAP access challenges.
If you are new to LDAP, you will find helpful background information about the role of directories in today's software systems; LDAP methods of storing, accessing, searching, and updating data; and how the Directory SDK for Java helps applications gain access to an LDAP server. Once you have become proficient with the essential concepts and techniques, you can move on to detailed material about authentication, LDAP and JavaScript(TM), working with JavaBeans(TM) for reusable LDAP components, expressing data relationships in a directory, and other advanced LDAP subjects.
Specific topics covered include:
- The LDAP naming and information models
- The command-line tools of the SDK
- Authentication with a password, SSL, and SASL
- Configuring access control
- Writing LDAP applets for a browser
- Accessing the SDK from JavaScript
- Storing configuration and preferences in a directory
- Encapsulating LDAP functionality in a JavaBean
- Using LDAP in Java servlets
- LDAP URLs
- Multiple threads and multiple connections
- Referrals and replicated systems
- LDAP controls
- Synchronous and asynchronous operations
- Performance tips
LDAP Programming with Java(TM) also presents numerous examples, from simple code snippets to complete components and applications.
Read More
JNDI is the most well known method for accessing LDAP from Java. This book however covers the Directory SDK for Java from Netscape. I suspect the reason for that is that both of the authors were involved with this SDK. I suspect the SDK has much more LDAP functionality than JNDI supports but unfortunately, the book does not talk about this.
The book has only one paragraph of text and one JNDI code example. This was very disappointing. I hadn't even heard of the Directory SDK until I got this book and I don't know what the pros and cons of the SDK versus JNDI. This is a major hole in the coverage.
The book is extremely through in its coverage of the Directory SDK for Java. Just about every possible topic I could think of related to LDAP programming there was an example illustrating the point. The book is very readable.
If using the Directory SDK for Java is what you are wanting to do, then this is an excellent book. However, if you are unsure if you want to use that or JNDI (or even just want to do LDAP with JNDI), then you will find this book lacking.