About OpenDJ SDK Examples

This module contains example LDAP applications implemented using the OpenDJ LDAP SDK.

The following examples use the synchronous APIs:

  • LDAP search - illustrates how to perform an LDAP search operation using the synchronous APIs
  • LDAP modify - illustrates how to perform an LDAP modify operation using the synchronous APIs
  • LDAP server - illustrates how to implement a very simple LDAP server
  • LDAP bind - illustrates how to bind to an LDAP server using the synchronous APIs
  • LDAP SASL bind - illustrates how to implement a SASL PLAIN bind to an LDAP server
  • Parse attributes - illustrates how to get an entry's attribute values as objects
  • Read LDAP schema - illustrates how to read and verify an LDAP server's schema
  • Read Root DSE - illustrates how to read an LDAP server's capabilities and schema
  • Search & bind - illustrates how to authenticate given a mail address and a password using the synchronous APIs
  • Short life - illustrates how to create, update, rename, and delete an entry using the synchronous APIs
  • Use LDAP Schema - illustrates how to validate an entry using the directory server LDAP schema using the synchronous APIs
  • Use LDAP Controls - illustrates how to use supported LDAP controls
  • Use LDAP Extended Operations - illustrates how to use supported LDAP extended operations
  • Update group - illustrates how to add or remove a member from a static group using the synchronous APIs
  • Use GenericControl - illustrates how to use GenericControl to add a pre-read request control
  • Get AD Change Notifications - illustrates how to use GetADChangeNotifications to get change notifications from Active Directory
  • Reset AD user password - illustrates how to reset a user password in Active Directory as Administrator, or change the password as the user

The following examples use the asynchronous APIs:

  • LDAP search (async) - illustrates how to perform an LDAP search operation using the asynchronous APIs
  • LDAP modify (async) - illustrates how to perform an LDAP modify operation using the asynchronous APIs
  • LDAP proxy - illustrates how to implement a very simple LDAP proxy
  • LDAP bind (async) - illustrates how to bind to an LDAP server using the asynchronous APIs
  • Search & bind (async) - illustrates how to authenticate given a mail address and a password using the asynchronous APIs
  • Short life (async) - illustrates how to create, update, rename, and delete an entry using the asynchronous APIs
  • Use LDAP Schema (async) - illustrates how to validate an entry using the directory server LDAP schema using the asynchronous APIs
  • Rewrite proxy - illustrates how to rewrite DNs and attribute names in a proxy layer
  • Update group (async) - illustrates how to add or remove a member from a static group using the asynchronous APIs

Documentation for OpenDJ SDK Examples

Javadoc for this module can be found here.

Get OpenDJ SDK Examples

You can get OpenDJ SDK Examples using any of the following methods:

Download

Pre-built binaries can be downloaded directly from the ForgeRock Maven repository:

Build

For the DIY enthusiasts you can build it yourself by checking out the latest code using Subversion and building it with Maven 3.