SP3 OS On Dell

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, February 18, 2008

Building and installing OpenLDAP v2.4.7 in Solaris 10 update 4 (8/07) OS (SPARC) (Rev: 1.2)

Posted on 1:20 AM by Unknown


Installed prerequisite software

I have installed a fresh copy of Solaris 10 (http://www.sun.com/software/solaris) OS (SPARC) on a Sun Ultra Enterprise 450 server on Jan 2008. Before building and installing OpenLDAP, I have downloaded and installed the below prerequisite software from http://sunfreeware.com/:

  • gcc-3.3.2 (GNU C compiler and related programs)
  • sasl-2.1.21 (Simple Authentication and Security Layer)
    Sasl plugins are installed at /usr/local/lib/sasl2, but the library will look for them in /usr/lib/sasl2. We need to make sure that the plugins will eventually be in /usr/lib/sasl2 by creating a symbolic link as shown below after installing the sasl package:
    # ln –s /usr/local/lib/sasl2 /usr/lib/sasl2
  • db-4.2.52.NC (Berkeley Database software)
  • tcp_wrappers-7.6 (tcp_wrappers package)
    Kindly edit the /etc/hosts.allow and /etc/hosts.deny files to monitor and filter incoming requests for the SYSTAT, FINGER, FTP, TELNET, RLOGIN, RSH, EXEC, TFTP, TALK, and other network services. Below are some examples:

    /etc/hosts.allow
    sshd:<hostname>,<IP_address>,<xxx.xxx.>, <xxx.xxx.xxx.>
    where xxx refers to the IP address numbers

    /etc/hosts.deny
    ALL: ALL@ALL, PARANOID


    I use the original SUNWopensslr v11.10.0 (/usr/sfw/bin/openssl) that comes with Solaris 10 OS to provide the Transport Layer Security services. I did not install the Kerberos Authentication Service as we did not use it.

Building and installing OpenLDAP

1. Get the OpenLDAP software and unpack it
Please download the software from http://www.openldap.org/software/download/. It is recommended that new users start with the latest release:

# gunzip -c openldap-VERSION.tgz tar xvf -
# cd openldap-VERSION


2. Running configure
In Solaris 10, please modify your PATH to use the /usr/local/bin/gcc first instead of the /usr/sfw/bin/gcc. I set my environment (env) settings as shown below before running configure:

# env CFLAGS=”-D_AVL_H” CPPFLAGS=”-I/usr/local/include
–I/usr/local/BerkeleyDB.4.2/include
–I/usr/local/include/sasl –I/usr/sfw/include” LDFLAGS=”-L/usr/local/lib
–L/usr/local/BerkeleyDB.4.2/lib –L/usr/local/lib/sasl2 –L/usr/sfw/lib” CC=”/usr/local/bin/gcc”

The CFLAGS=”-D_AVL_H” is used to solve the
make error:make: Fatal error: Command failed for target ‘all-common’

The setting of env on “–I/usr/local/BerkeleyDB.4.2/include” in CPPFLAGS and “–L/usr/local/BerkeleyDB.4.2/lib” in LDFLAGS are used to solve the error:
configure: error: BDB/HDB: BerkeleyDB not available

The setting of env on “–I/usr/sfw/include” in CPPFLAGS and “–L/usr/sfw/lib” in LDFLAGS are used to solve the SUNWopensslr error:
tls.c: syntax error

The setting of env on CC=”/usr/local/bin/gcc” is used to solve the error:
configure: error: C compiler cannot create executables

Then, I ran the below configure options:
# ./configure –with-wrappers –with-tls –with-cyrus-sasl –prefix=/opt/openldap

This will configure openLDAP with TCP Wrappers, Transport Layer Security, Simple Authentication and Security Layer and BDB backend (default) support. I use the –prefix option because I want the openLDAP software to be installed at the /opt directory instead of the default /usr/local directory.


3. Building the software
After running the configure script, the last line of output should be
Please "make depend" to build dependencies

If the last line of output does not match, configure has failed. You will need to review its output to determine what went wrong. You should not proceed until configure completes successfully.

To build dependencies, please run:
# make depend

Now compile OpenLDAP:
# make
This command builds the LDAP libraries and associated clients as well as slapd(8).


4. Testing the software
After openLDAP is properly configured and compiled, before testing the software in Solaris 10, please ensure that you have added the /usr/sfw/bin in the PATH and /usr/sfw/lib in the LD_LIBRARY_PATH to solve the libssl.so.0.9.7 not found error.

You can run the test suite to verify the build:
# make test


5. Installing the software
After you have successfully tested the software, before installing the software in Solaris 10, please ensure that you have added the /usr/ccs/bin in the PATH for root.

Login as root to install the software:
# cd openldap-VERSION
# make install

By default OpenLDAP Software is installed in the /usr/local directory. If you changed this setting with the --prefix configure option, it will be installed in the location you provided. You will find the configuration files for slapd(8) in /usr/local/etc/openldap by default.


References:

[1] OpenLDAP quick start guide

[2] OpenLDAP doesn't compile in 64bit / Solaris 10

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Solved Windows Defender "ERROR: Signature Update failed with hr=800106BA" & "Windows Update cannot currently check for updates because the service is not running" errors in Acer Aspire X5900 pc with Windows 7 Home Premium x64 OS (Rev: 1.0)
    After login to the Windows 7 Home Premium x64 Operating system (OS) of the Acer Aspire X5900 pc [Intel i5-650, 3.20 GHz, Western Digital 1 T...
  • Solved changing SATA operation mode in BIOS from IDE to AHCI without reinstalling Windows XP x64 OS for ASUS P8H77-M motherboard (Rev: 1.0)
    Before the Windows XP x64 Operating System (OS) installation process on Asus P8H77-M motherboard computer that has Intel H77 Express Chipse...
  • Solved People Express Management Flight Simulator software 16 bit Windows Subsystem error when login as a local user account in Windows XP Professional SP3 x86 OS (Rev: 1.1)
    After installed the People Express Management Flight Simulator (PEMFS) v1.02 on a Windows XP Professional SP3 x86 OS using an administrator ...
  • Solved syntax error when printing a pdf file to HP Laserjet 8150 printer (Rev: 1.1)
    When printing a pdf file entitled "On the concept of 'tractor beams'" (by S. Sukhov and A. Dogariu*)  to HP Laserjet 8150 ...
  • Photos/Contact Me (Rev: 1.74)
    A brief introduction of myself: Jack Ng Singaporean Diploma in Electrical Engineering Professional Diploma in Management Degree of Bachelor ...
  • Solved Chinese (PRC) keyboard layout error (Rev: 1.2)
    Situation When I tried to add the " Chinese (PRC) - Chinese (Simplified) - Micosoft Pinyin IME 3.0 " keyboard layout to the Langua...
  • Remote Desktop Connection (Rev: 1.89)
    Remote Desktop Connection (RDC) is a technology that allows you to sit at a computer/notebook and connect to a remote computer/server in a d...
  • Series RC circuit (Rev: 1.41)
    Diagram 1: Capacitor voltage (V C ) and current (I) waveforms In a capacitor, current (I) flows across the capacitor leads the capacitor v...
  • Set a light green desktop background colour to protect your eyes through long hours of looking at the pc monitor (Rev: 1.0)
    If you spend long hours looking at your pc monitor screen daily, you might want to protect your eyes by changing the background colour of yo...
  • "Fan error" in IBM T42 notebook (Rev: 1.2)
    JackNg updates on 7 January 2010: I have changed to a known good fan from another IBM T42 notebook. The " fan error " is solved as...

Blog Archive

  • ►  2013 (8)
    • ►  May (2)
    • ►  April (3)
    • ►  March (2)
    • ►  February (1)
  • ►  2012 (26)
    • ►  December (5)
    • ►  October (1)
    • ►  September (3)
    • ►  August (2)
    • ►  July (6)
    • ►  June (2)
    • ►  March (4)
    • ►  February (1)
    • ►  January (2)
  • ►  2011 (13)
    • ►  November (1)
    • ►  October (5)
    • ►  September (1)
    • ►  June (2)
    • ►  May (2)
    • ►  March (1)
    • ►  January (1)
  • ►  2010 (14)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  June (3)
    • ►  May (3)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2009 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  June (1)
    • ►  May (2)
    • ►  February (5)
    • ►  January (1)
  • ▼  2008 (44)
    • ►  December (4)
    • ►  November (7)
    • ►  September (2)
    • ►  August (7)
    • ►  July (3)
    • ►  June (3)
    • ►  May (2)
    • ►  April (1)
    • ►  March (9)
    • ▼  February (6)
      • Boot Solaris 10 DVD on Sun machines (Rev: 1.4)
      • Taxi companies in Singapore (Rev: 1.6)
      • King of Thrift 省钱王 (Rev: 1.7)
      • Building and installing OpenLDAP v2.4.7 in Solaris...
      • Mobile phone IMEI (Rev: 1.2)
      • Japanese song sheets (Rev: 2.1)
Powered by Blogger.

About Me

Unknown
View my complete profile