All of the sample code used in the blog is available for checkout as a Apache Maven project at Google Code. Check out using SVN:
svn checkout http://ldap-sample-code.googlecode.com/svn/trunk/ \ ldap-sample-code-read-only
Project Description
The ldap-sample-code project houses sample code written for use in demonstrating aspects of LDAP, best practices with LDAP, and the UnboundID LDAP SDK. The sample code is often used to provide examples and demonstrations at the LDAP Blog and references to code in that blog refer to code hosted in this project.
There are many examples of best practices uses of LDAP such as
- Use the UnboundID LDAP SDK to add an entry to an LDAP server database: AddExample.java
- matching rules used to compare distinguished names and attribute values
- Bind demonstration
- Password Modify Extended request
- Persistent Search
- Simple paged Results Request Control
- Virtual List View
- Authorization Identity Request Control
- Demonstrations use the
LDAPCommandLineTool
class - In-memory Directory Server
- Search best practices
- the use of extensions and request controls
- use of the root DSE to check whether request controls and extensions are supported