• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Java and LDAP

 
Greenhorn
Posts: 7
IntelliJ IDE Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi y'all,

I need to access LDAP from Java. Does J2SE offer any APIs for that? What are some resources to learn this?

Thanks!
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not aware of any package in J2SE that can retreive/update or insert elements in LDAP. Still there are some open source packages that you can use.
For example :

1. http://www.openldap.org/jdbcldap/
2. http://www.openldap.org/jldap/
3. http://docs.sun.com/source/816-6402-10/api.htm#2835023

Where 1 is maybe the most interesting reference. It is not a standard LDAP API, but is actually a JDBC-LDAP bridge driver. So when you are not really used to programming for an LDAP server, you can use your JDBC knowledge to do the same.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Naming and Directory InterfaceTM (JNDI) provides naming and directory functionality (a service provider for LDAP is included since Java 1.4.2).

See http://java.sun.com/j2se/1.5.0/docs/guide/jndi/index.html

See package javax.naming in API specification.
 
reply
    Bookmark Topic Watch Topic
  • New Topic