SysAdmin Blog, TechTips and Reviews

System Administrators’ Blog

Archives Posts

OpenLDAP Installation Using Packages (pkgadd)

September 20th, 2007 by elizar

I would like to post an update on our previous OpenLDAP source installation, but I encountered an error so, enough with the source thing and let’s install one from packages which is available on Sunfreeware.

OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. These build packages installs in /usr/local/

Requirements and Dependencies

Here’s what packages you’ll need:

Dependencies are:

This implementation of OpenLDAP was build on a sparc machine Sun Blade 100 workstation running Solaris 8.

Installing Packages

You can go ahead and refer to this post in using the pkgadd .

Once all the packages are installed above, the binary can be found in /usr/local/bin , /usr/local/sbin and config files are in /usr/local/etc.

There are some more setup and configuration to setup (like setting of variables) but as far as installation is concern, we’re done.

See you on the next post about configuration for OpenLDAP

Archives Posts

configure: error: BDB/HDB: BerkeleyDB not available

September 2nd, 2007 by elizar

After installing the required prerequisite for OpenLDAP installation, I ran into my first error in running the configure script:

checking db.h usability… no
checking db.h presence… no
checking for db.h… no
configure: error: BDB/HDB: BerkeleyDB not available

At first, I thought this was just a case of $PATH not set up properly (since /usr/local) in not in the path by default). After setting up the path:

# echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/BerkeleyDB.3.3:/usr/local/BerkeleyDB.3.3/bin:/usr/local/BerkeleyDB.3.3/include/
#

I still have the error.

I then added the path for the include files in the env

env CPPFLAGS=-I/usr/local/Berkeley/include

Did the configure and…

checking for db.h… yes

That fixed…

Next error… :D

Archives Posts

OpenLDAP Installation on Sun Blade 100

August 29th, 2007 by elizar

This is an OpenLDAP installation on the following system:

System Configuration: Sun Microsystems sun4u
Memory size:
1024 Megabytes

Sun-Blade-100 (UltraSPARC-IIe)

Prerequisites:

Depending on the requirements, there may be a need to install some third party softwares:

  • OpenSSl
  • Kerberos
  • SASL
  • Berkeley DB
  • TCP Wrappers
  • and others

Need to make sure the following variables is set:

Variable Description
CC Specify alternative C Compiler
CFLAGS Specify additional compiler flags
CPPFLAGS Specify C Preprocessor flags
LDFLAGS Specify linker flags
LIBS Specify additional libraries

(additional: Need to install gcc, ar (binutils) libiconv libintl-3.4.0-sol8-sparc-l as well as Berkeley DB on server)

With the initial installation I will set it up using

# ./configure

# make depend

# make

# make test

Finally,

# su root -c ‘make install’

That’s it, hopefully all will go well.. If it doesn’t, we’ll post the error (and hopefully solution).

Cheers!