[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: java API for openldap

I just wanted to thank those who helped with this topic. I used the novell java LDAP API and somehow despite very similar class/method names to netscape's API it was enough to get all the results back that I wanted from the openLDAP schema. I even got it done within a few hours time because it was so similar to the netscape API. (Although I'm missing content rules, name forms, and structure rules but I presume there aren't any that exist by default).


Marc Boorshtein wrote:

JNDI is built into Java, where as JLDAP is an external library.  JNDI
is actually and abstraction layer for different directory APIs
(including DNS, NIS and a few others) where as JLDAP is an LDAP
specific API (though it does support some web services as well).  I
personally feel JLDAP is simpler then JNDI.

LDAP is a protocol, with OpenLDAP being a "database" that implements
that protocol and uses it to communicate with clients.  This being the
case, both libraries can communicate with either OpenLDAP or any other
LDAPv3 server (though as Kurt says, anything non-standard will cause
your mileage to vary).  Additionally, there are APIs out there to
simplify both JNDI and JLDAP.  One of them is the JDBC-LDAP bridge
(also an OpenLDAP project) which lets you work with LDAP servers using
SQL.  It ultimatly depends on what type of application you are