Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Use Apache Geronimo and Ajax to build a directory, Part 1: Configuring Geronimo's LDAP server

Matthew Jording (kingrabbit@gmail.com), Freelance writer, Sensis Corporation
Matthew Jording has spent the last decade developing Java Enterprise applications for Fortune 500 companies. Currently employed by Sensis Corporation, Matthew is working on a Geronimo-based service-oriented architecture for the Aerospace Industry. Matthew and co-author Nathan Mittler are writing Geronimo In Action for Manning Publications. Matthew is married with two teenage daughters and lives in Syracuse, New York.

Summary:  Proficiency in working with Lightweight Directory Access Protocol (LDAP) is an important skill for developers creating enterprise applications for Apache Geronimo and IBM® WebSphere® application servers. In this two-part tutorial series, learn how to use the LDAP Tools for Eclipse to configure Geronimo's built-in Apache Directory LDAP server, ApacheDS. In this first installment, you'll import hypothetical personal information into the LDAP server while gearing up for Part 2, where you'll query the LDAP server and update the Web page using Ajax.

View more content in this series

Date:  23 May 2006
Level:  Intermediate PDF:  A4 and Letter (320 KB | 19 pages)Get Adobe® Reader®

Activity:  4090 views
Comments:  

Before you start

This two-part tutorial series is for you if you're a developer interested in leveraging the power LDAP can provide your enterprise application development. This series shows you how to configure Apache Geronimo's built-in LDAP server using the LDAP Tools for Eclipse and how to build an Ajax application to verify and test its capabilities.

About this series

LDAP, an IBM-supported standard, is a common method for e-mail clients to look up e-mail addresses from fragments of a name, or for networked servers to obtain login credentials. Basically an LDAP client can query an LDAP server to obtain any information about users therein. The LDAP Tools for Eclipse can help you get your LDAP server off to the right start. Geronimo implements LDAP through the Apache Directory project, in the LDAP subproject, and is an excellent LDAP implementation for your Java™ 2 Platform, Enterprise Edition (J2EE) projects.

This installment of the series, Part 1, covers configuring Geronimo's built-in Apache Directory LDAP server using the LDAP Tools for Eclipse. Here you'll import hypothetical personal information into the LDAP server while gearing up for Part 2 of the series, where you'll query the LDAP server and update the Web page using Ajax.

In Part 2, you'll also create the J2EE application that logs into the e-mail client using programmatic authentication and authorization by verifying a username and password against the LDAP server. An e-mail can then be submitted to users listed in the LDAP server by entering a first or last name or a phone number. Geronimo's LDAP server is then queried via JavaScript, and a list of suggestions for auto-completion is displayed.


About this tutorial

Apache Geronimo, the newest J2EE application server offering from Apache, is taking important steps in redefining how J2EE services are implemented. One of the most important parts of the Geronimo architecture is its modular, lightweight framework implementation. This modular design allows best-of-breed enterprise components to quickly and easily integrate into the overall server.

Over the course of the past decade, directory services have become essential computing needs of the enterprise. There have been several protocols, specifications, and varied approaches tackling the problem of discovery and registration of information. Whether storing authentication information, service information, or business contact lists, directories have become central to the way enterprise applications operate.

One of the most popular solutions to the directory quandary is LDAP, an IBM-supported standard, which is a network protocol for querying and updating directory services over standard TCP/IP network connections. Developers creating enterprise applications for Apache Geronimo and IBM WebSphere application servers will find proficiency in working with LDAP to be an important part of their skill set. If you're interested in leveraging the power LDAP can provide your enterprise application development, then this tutorial series is for you. Use this tutorial to learn how to configure Geronimo's built-in LDAP server using LDAP Tools for Eclipse, and build an Ajax application to verify and test its capabilities.

In this tutorial, you'll get familiar with Geronimo and its built-in Apache Directory LDAP server, ApacheDS. You'll install and configure both for LDAP application development. You'll also get to know the LDAP Tools for Eclipse, an Eclipse plug-in that allows you to view and manage the LDAP directory. This tutorial walks you through importing hypothetical personal information into the LDAP server, as well as viewing a populated directory and its entries, without leaving your Integrated Development Environment (IDE).


Prerequisite knowledge

This series assumes you have some expertise as a Java enterprise Web developer and some comfort with system administration tasks, such as setting environment variables and server installation. Familiarity with the Eclipse IDE is also helpful.


System requirements

Download the following tools to follow along with this tutorial:

1 of 8 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source
ArticleID=112579
TutorialTitle=Use Apache Geronimo and Ajax to build a directory, Part 1: Configuring Geronimo's LDAP server
publish-date=05232006
author1-email=kingrabbit@gmail.com
author1-email-cc=troy@backstopmedia.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.