Our topic of discussion today will be JNDI (Java Naming and Directory Interface), which is a standard way to query directories for different kind of available informations.
We will see how you can use Java to interact with OpenLdap or any other directory (like Apache OpenDS etc...).
In order to connect to an ldap directory server we will need to know :- The server url (in our case localhost)
- The authentication used : Simple, Digest etc...
- the base DN, or the root element.
- Bind DN, the user we will connect to the directory as.
- Bind password.