LDAP (
Lightweight
Directory
Access
Protocol) is a protocol for accessing a directory service while JNDI is an API for accessing an abstract directory service. For example, your
Java code can use the JNDI API for browsing a directory service while the data moves between your code and the service using the LDAP protocol.