Administration
  Home arrow Administration arrow Page 3 - Understanding LDAP (part 2)
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ADMINISTRATION

Understanding LDAP (part 2)
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 12
    2003-03-05


    Table of Contents:
  • Understanding LDAP (part 2)
  • Opening Up
  • Building Blocks
  • The Root Of All Evil
  • A Little Black Book Is Born
  • Digging Deep
  • Changing Things Around
  • You Have Mail
  • Link Zone

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Understanding LDAP (part 2) - Building Blocks
    ( Page 3 of 9 )

    The first order of business to install OpenLDAP on your Linux box. Drop by the official Web site at http://www.openldap.org/ and get yourself the latest stable release of the software (this tutorial uses OpenLDAP 2.1.12). Note that you will also need a copy of the SleepyCat Berkeley DB database engine, available from http://www.sleepycat.com/ (this tutorial uses Berkeley DB 4.1.25)

    Once you've downloaded the source code archive to your Linux box (mine is named "olympus"), log in as "root".
    [me@olympus] $ su -
    Password: ****
    
    You'll first need to compile and install Berkeley DB. Extract the source to a temporary directory.
    [root@olympus] $ cd /tmp
    
    [root@olympus] $ tar -xzvf db-4.1.25.tar.gz  
    
    Next, configure the package using the provided "configure" script,
    [root@olympus] $ cd /tmp/db-4.1.25
    
    [root@olympus] $ cd build_unix
    
    [root@olympus] $ ../dist/configure
    
    and compile and install it.
    [root@olympus] $ make
    
    [root@olympus] $ make install
    
    Unless you specified a different path to the "configure" script, Berkeley DB will have been installed to the directory "/usr/local/BerkeleyDB.4.1".

    Next, you need to install the OpenLDAP software proper. Again, extract the source archive to a temporary directory.
    [root@olympus] $ cd /tmp
    
    [root@olympus] $ tar -xzvf openldap-stable-20030107.tar.gz  
    
    Next, configure the package using the provided "configure" script,
    [root@olympus] $ cd /tmp/openldap-2.1.12
    
    [root@olympus] $ ./configure --prefix=/usr/local/openldap
    and compile and install it.
    [root@olympus] $ make depend
    
    [root@olympus] $ make 
    
    [root@olympus] $ make install
    
    Since I specified a custom path to the "configure" script, OpenLDAP will have been installed to the directory "/usr/local/openldap".

    It must be noted that "configure" sometimes barfs when including the Berkeley DB library into OpenLDAP. In case you have this problem, explicitly tell "configure" where to find the files, as follows:
    [root@olympus] $ env CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include"
    LDFLAGS="-L/usr/local/BerkeleyDB.4.1/lib" ./configure
    --prefix=/usr/local/openldap                           
    
    Once you've got OpenLDAP installed, the next step is to configure it.

     
     
    >>> More Administration Articles          >>> More By icarus, (c) Melonfire
     

       

    ADMINISTRATION ARTICLES

    - Network Booting via PXE: the Basics
    - Scalix: Linux Administrator`s Guide
    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek