ASE Labs
Welcome Guest. Please register or log in now. There are 37 people online (0 Friends).
  • Home
  • Articles
  • News
  • Forum
  • Register/Login
You are at ASE Labs » Articles » Reviews Index » OpenLDAP Installation On Ubuntu

OpenLDAP Installation On Ubuntu

Author
Aron Schatz
Posted
March 7, 2008
Views
41493
OpenLDAP Installation On Ubuntu
Directory services run nearly every enterprise network today. Each place you see Active Directory, LDAP is working its magic. Find out how to easily install a LDAP server of your own on Ubuntu.
Tags Linux Guides Ubuntu OpenLDAP LDAP

Page 1: Intro, Why, System Setup, Step 1, Step 2

Intro:

The Lightweight Directory Access Protocol, LDAP for short, is a 'fork' of the original X.500 specification for Directory Access Protocol. This X.500 was large and heavy. It also required an OSI protocol stack to run. LDAP was made to be leaner and able to run on top of TCP/IP instead of the OSI complete stack. Active Directory, the directory software that many Windows based enterprise networks use, is LDAP at its heart. Directory services can provide many benefits to a home network or a business. With LDAP setup, it is relatively easy to setup a single sign-on on every computer or have a global address book. The first step is the installation which is very easy on Ubuntu.

Why Bother?:

You might ask yourself about why you should even bother installing OpenLDAP. I can give you a few reasons.

  • Everything runs directory services. Every Windows Active Directory domain is running LDAP and most enterprise POSIX networks are running LDAP. OpenLDAP gives you insight and experience on how these systems work.
  • Central administration. Directory services can ease administration in the smallest networks using a central system. Make a single change in one place instead of each workstation.
  • It's easy. There's no reason not to install it. You can always try it out and uninstall it if you don't want to keep it.


System Setup:

This guide will give you step by step instructions on how to install OpenLDAP on Ubuntu. This guide will work on all its variants as well as Debian. The actual computer I used to perform the steps in this guide is my »BackupPC and fileserver as well as the VMWare server. This install will be done fully from a bash prompt so you are free to use ssh to do everything in this guide as I did.

You need to get to a bash prompt. If you are using ssh, you should know what you need to do. If you are new to Linux and are using Ubuntu, you can use the terminal program under Applications -> Accessories -> Terminal. That brings up a command line interface with a bash prompt. It should look like this...

aronschatz@aseserver:~$

Step 1: Install OpenLDAP

Technically, this can be the only step if you left the default settings. The default settings need adjustment, so we need to reconfigure the package after the installation. Don't worry, this isn't a one step guide.

To install OpenLDAP type...

aronschatz@aseserver:~$ sudo apt-get install slapd ldap-utils

1.png


This command will install OpenLDAP (called slapd) and some LDAP utilities from the Ubuntu repository. Make sure you enter your password for sudo and accept the installation of the software to continue. apt-get will install the software and return to a prompt asking you to input an initial password. Make this as simple as you want since we are going to reset the configuration of slapd.

Step 2: Reconfigure slapd

The next step we need to do is the actual configuration of the server. The installation pre-configured the slapd package, but we need to put in our own information. Since slapd is a Debian package, a simple command allows you to reconfigure it. Type...

aronschatz@aseserver:~$ sudo dpkg-reconfigure slapd

This command brings up the initial slapd configuration. dpkg-reconfigure is pretty easy to figure out. It is a graphical setup in the command line interface. The follow screenshots display the configuration.

2.png


We want to setup slapd, so you don't want to omit the OpenLDAP configuration. Pick No.

3.png


Directories work in the same way a domain does. In fact, it is good to name the base of your LDAP directory the same as your DNS suffix. My suffix happens to be asetest. so my base DN (distinguished name) would be "asetest" which actually translates into "dc=asetest". You can enter as long a domain as you want. If you wanted "ldap.aseserver.asetest" that would be fine. In the LDAP directory, this would be "dc=ldap,dc=aseserver,dc=asetest" where dc means domain component.

4.png


This step is the name of the organization. I just said "ASE LDAP", but you can pick any organization you want.

5.png


Here is where the new admin password is made. For extra security, pick a different password than the root password on the machine.

6.png


Now renter the same password to confirm.

7.png


This blurb is giving you information about how to store the data for LDAP. We will be using BDB. Just tab to OK.

8.png


Pick BDB and move on to the next screen.

9.png


No you don't want the database deleted on a purge.

10.png


Sure, move the old stuff out of the way.

11.png


No, you don't want to allow LDAPv2.

And that's the final configuration step. Next we will dive into the files to make sure everything is fine. The configuration routine actually handles everything nicely, but it is good to see what is happening.
  Next Page »
Page 1
Page 2
View As Single Page Print This Page Print Entire Article
Related Articles
  • DOS USB Bootable Drive
  • RAID Technology Part 2: RAID Levels
  • Cisco IOS: Home Router Configuration
  • RAID Technology Part 1
  • Video Card Recommendations
members/attachments/upload/2008/03/07/2415.png 1.png members/attachments/upload/2008/03/07/2416.png 2.png members/attachments/upload/2008/03/07/2417.png 3.png members/attachments/upload/2008/03/07/2418.png 4.png members/attachments/upload/2008/03/07/2419.png 5.png members/attachments/upload/2008/03/07/2420.png 6.png members/attachments/upload/2008/03/07/2421.png 7.png members/attachments/upload/2008/03/07/2422.png 8.png members/attachments/upload/2008/03/07/2423.png 9.png members/attachments/upload/2008/03/07/2424.png 10.png members/attachments/upload/2008/03/07/2425.png 11.png members/attachments/upload/2008/03/07/2426.png phpldwelcome.png members/attachments/upload/2008/03/07/2427.png phpldlogin.png members/attachments/upload/2008/03/07/2428.png phpldedit.png

Title

Medium Image View Large
Login
Welcome Guest. Please register or log in now.
Forgot your password?
Navigation
  • Home
  • Articles
  • News
  • Register/Login
  • Shopping
  • ASE Forums
  • Anime Threads
  • HardwareLogic
  • ASE Adnet
Latest News
  • Welcome to the new server
  • Gmail Gets Optional Preview Pane
  • HBO Go on Consoles
  • HP Touchpad Update
  • Happy System Administrator Day!
  • Apple Releases OS X 10.7 Lion
  • More Android Apps Found to be Malware
  • This Weeks News
  • Happy Birthday USA!
  • Windows Phone Gets Angry Birds, Custom Rings Coming To Mango
Latest Articles
  • Sapphire Edge HD4 Mini PC
  • Logitech G710+ Mechanical Gaming Keyboard
  • EnerPlex Kickr IV And Jumpr Solar Power Pack
  • Kingston Wi-Drive
  • Kingston SDX10V/128GB SDXC Memory
  • In-Win K1 All In One Convertible Case
  • Kingston MobileLite G3 USB3 SDXC Card Reader
  • Synology DS712+ Network Application Server
  • Rapoo Wireless Touchpad Keyboard E9080
  • Netgear NeoTV NTV200 Streaming Player
Latest Topics
  • Pokemon: The Ongaku Region
  • Random Fact of the Day
  • What are you listening to now?
  • P A R A S Y T E [A Samurai's Story]
  • We Are C A R E E R S [64th Hunger Games!]
  • Lets talk
  • Review Nokia Lumia 800 V.S. iPhone 4S: Convert DVD/Video to mobile phone devices.
  • You're a Fanfiction?!
  • hello every one
  • Hp Z1 Workstation Benchmarks
  • Sapphire Edge HD4 Mini PC at ASE Labs
  • HTC 8X
  • Dragon's Dogma
Advertisement
Advertisement
Affiliate Reviews
  • Raspberry Pi Gets New Wayland Weston Renderer at Phoronix
  • Chrome 27 Loads Web Pages Faster at Phoronix
  • G.SKILL Hosts Official OC World Record Stage at Computex 2013 at Hardware Secrets
  • NVIDIA Announces PhysX Support for Microsoft Xbox One Game Console at Hardware Secrets
  • Sony Mobile's Xperia Tablet Z Now Available Worldwide at Hardware Secrets
  • Microsoft Unveils Xbox One at Hardware Secrets
  • Shuttle OMNINAS KD20 Review at techPowerUp!
  • Debian GNU/Hurd 2013 Release Brings New Packages at Phoronix
  • Intel Ultrabook Performance Is Faster With Mesa 9.2 at Phoronix
  • Hot Relocation HDD To SSD Support For Btrfs at Phoronix
  • Phoronix Test Suite 4.6.0 "Utsira" Released at Phoronix
  • New Intel X.Org Driver Supports All Of Haswell at Phoronix
  • Mesa 9.1.3 Release Corrects Some Bugs at Phoronix
  • SQLite Now Faster With Memory Mapped I/O at Phoronix
Press Release
  • Epiq Solutions Announces the Matchstiq(TM) Z1 Handheld Software Defined Radio
  • Writers' Group Film Corp. Unveils New Strategic Initiatives Aimed at Revenue Growth and Leveraging Distribution Platforms
  • Promoting the Myth of the "Always Connected" Device
  • BillFloat's SmartPay Expands Pilot Program to RadioShack
  • =?ISO-8859-1?Q?Cricket_Announces_Launch_of_the_4G_Samsung_Galaxy_S=AE4?=
  • Merchants can win $10,000 cash plus a touch-screen POS System in Harbortouch's Business Upgrade Contest
  • Life Wireless offers cellphone service in Nevada and Ohio
  • RadioShack Begins Collecting Customer Donations To Benefit Texas and Oklahoma Tornado Victims
  • GainSpan's Application Development Kit Jump-Starts Innovation for Wireless Video Applications
  • D&H Distributing's "Get Authorized" Program Makes Pricing Compliance More Convenient
Home - ASE Publishing - About Us
© 2010 Aron Schatz (ASE Publishing) [Queries: 19 (8 Cached)] [Rows: 313 Fetched: 56] [Page Generation time: 0.3568320274353]