O'Reilly logo

Mastering OpenLDAP by Matt Butcher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Compiling OpenLDAP

In the last section we prepared all of the tools and libraries for building OpenLDAP. In this section we will configure, compile, and test OpenLDAP.

First, we need to get our OpenLDAP server source code moved into a temporary directory for building. Copy the openldap-2.3.x.tgz file into the appropriate directory and then unpack the file:

$ mkdir build/
$ cp openldap-2.3.37.tgz build/
$ cd build
$ tar -zxf openldap-2.3.37.tgz 

Here, I created a new directory (called build/), copied the OpenLDAP source code archive into the new directory, changed the working directory to build/, and then unpacked the file with the tar utility (the flags -zxf instruct tar to uncompress (z) and extract the contents (x) of the file (f) openldap-2.3.37.tgz ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required