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]

Build an LDAP-based address book

Store contact information for multiple applications to share

Tom Syroid, Freelance author, Studio B Productions
Tom Syroid is a contract writer for Studio B Productions, a literary agency based in Indianapolis, IN, specializing in computer-oriented publications. His specialties include *NIX system security, Samba, Apache, and Web database applications based on PHP and MySQL. He has experience administering and maintaining a diverse range of operating systems including Linux (Red Hat, OpenLinux, Mandrake, Slackware, Gentoo), Windows (95, 98, NT, 2000, and XP), and AIX (4.3.3 and 5.1). He is also the co-author of Outlook 2000 in a Nutshell (O'Reilly & Associates) and OpenLinux Secrets (Hungry Minds). Tom lives in Saskatoon, Saskatchewan, with his wife and two children. Hobbies include breaking perfectly good computer installations and then figuring out how to fix them, along with gardening, reading, and building complex structures out of Legos with his kids. Contact Tom at dwcomments@syroidmanor.com.

Summary:  Have you ever tried to share your contact list with someone who uses a different data format, or tried to migrate your address book to another application? If so, you know it can be a headache. Import and export schemes, if they exist at all, are often too clunky and unsatisfactory to use even once, much less on a regular basis. Enter the Lightweight Directory Access Protocol. This tutorial shows you how to create an LDAP-based backend to store contact information that multiple applications can share easily. Along the way, you learn about LDAP fundamentals and a pre-built contact management tool; both will help you get started using this open technology.

Date:  11 Sep 2002
Level:  Introductory PDF:  A4 and Letter (299 KB | 27 pages)Get Adobe® Reader®

Activity:  20599 views
Comments:  

Before you start

About this tutorial

This tutorial shows you how to create an LDAP-based backend to store contact information that multiple applications can share easily. Along the way, we give you an overview of LDAP fundamentals and introduce you to a pre-built contact management tool that will help you get started using this open technology.

Almost all e-mail clients on the market today (both open source and proprietary) suffer from at least one fatal, nagging flaw -- the address books they provide for storing contact information make it easy to store data, and notoriously difficult to get that data back out in a form that can be used by other programs.

The material in this tutorial is a direct result of my own personal frustration in easily sharing contact information between e-mail clients, other programs, operating systems, and computers. The solution presented is to use a centrally located LDAP directory service to store e-mail addresses and contact details, and access this information for a wide range of applications as needed.

One caveat up front: To utilize the methods described here, your application(s) must support LDAP access in one form or another. LDAP support is becoming commonplace in most popular e-mail clients and a growing number of other data-driven applications. But be sure to check the documentation provided with your applications before making any dramatic transitions. Even if your program of choice doesn't currently support LDAP access, chances are it will in the near future; by reading through this tutorial, you'll be prepared when that day comes.

On completion of this tutorial, you will:

  • Understand the technology behind an LDAP directory, how its database structures are organized, and how an LDAP store is accessed by a client.
  • Know how to install and configure an OpenLDAP server.
  • Be able to add content to the LDAP directory.
  • Understand the general procedures required to allow an LDAP-enabled e-mail client to look up contact information stored in an LDAP directory.

Prerequisites

Readers should have a basic working knowledge of common administrative tasks and the concepts behind them. This includes tasks such as setting file permissions, managing user accounts, moving and copying files, creating symlinks, etc.

To follow along with the examples in this tutorial, you need access to a correctly installed and configured Linux system and the following software:

  • Red Hat Linux 7.3. Operating system specific instructions are based on Red Hat Linux 7.3 (see Resources). Red Hat Linux was chosen because of its popularity, and because most administrators/users have at least a passing acquaintance with its system layout and conventions.
  • OpenLDAP. OpenLDAP is used as an LDAP directory server (see Resources). OpenLDAP is open source, based on open standards, and available as a free download. For the most part, however, the structures, layout, and administrative tasks discussed are readily transferable to commercially available directory servers such as IBM's SecureWay Server and Netscape's Directory Server offering.

1 of 9 | 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=Linux
ArticleID=132924
TutorialTitle=Build an LDAP-based address book
publish-date=09112002
author1-email=
author1-email-cc=

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.