background preloader

Ldap

Facebook Twitter

LdapTemplate: LDAP Programming in Java Made Simple. The Java Naming and Directory Interface (JNDI) is for LDAP programming what Java Database Connectivity (JDBC) is for SQL programming.

LdapTemplate: LDAP Programming in Java Made Simple

There are several similarities between JDBC and JNDI/LDAP (Java LDAP). Despite being two completely different APIs with different pros and cons, they share a number of less flattering characteristics: They require extensive plumbing code, even to perform the simplest of tasks.All resources need to be correctly closed, no matter what happens.Exception handling is difficult. The above points often lead to massive code duplication in common usages of the APIs. As we all know, code duplication is one of the worst code smells.