- You have LDAP installed and configured.
- You have Apache Derby installed on your system.
- You need JNDI libraries from Sun (I am using jndi 1.2.1)
- You need LDAP libraries from Sun. (I am using ldap 1.2.4)
If you want to have the configuration set on a global level add the following to a file called derby.properties in the installation directory. You will need to modify it to match your environment.
You can set the database properties on a database basis. This is accomplished by setting the parameters (database properties) in the database using SQL. The script is located below. This must be modified to accommodate your environment. Place the jndi and ldap files in the directory containing the database (see below). The database in my example is called ldaptest.
Once you have executed the script above, you will need to restart the database. I used my Aqua Studio application to connect to the database.
/* Apache Derby 10.x */
* This file is used to set the database-wide LDAP configuration. Rebooting the service is
* required for the changes to take effect.
/* Set the authentication provider to LDAP */
/* Set the LDAP server */
/* Set the BaseDN to search */
/* Create a cached entry for a user */
- If LDAP is not available you can not connect to the database.