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 Windows 7 x64 OS hibernation failed problem due to VgaSave on Dell Precision T7600 workstation (Rev: 1.3)
    The Dell Precision T7600 workstation [2 x Intel Xeon E5-2687W (8 cores) 3.1 Ghz CPU, 256 GB RAM] has a Nvidia Quadro 5000 video card [ defa...
  • 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...
  • 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...
  • Change Roxio Creator DE 10.3 from Chinese interface to English interface (Rev: 1.0)
    If your Roxio Creator DE 10.3 software installed in your Dell computer or workstation is of Chinese interface, and you want to change the Ro...
  • Japanese dictionaries (Rev: 1.33)
    Online dictionaries and eDictionary (edict) for Japanese language I have bought a few dictionaries ( The Kenkyusha Japanese-English learner...
  • Recover a Virtual Machine that disappears in Hyper-V Manager Console (Rev: 1.0)
    When trying to start a created Virtual Machine calls WinXPsp3_x86 in the Windows Server Enterprise 2008 SP2 Operating System with Trend Mic...
  • Uninstall Remote Desktop Protocol 8.0 (KB2592687) update for Windows 7 Enterprise SP1 OS (Rev: 1.0)
    Microsoft KB2592687 is the Remote Desktop Protocol 8.0 update for the Windows 7 SP1 Operating System (OS) and Windows Server 2008 R2 SP1 O...
  • 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 ...
  • Explore2fs (Rev: 1.1)
    Explore2fs is a free Windows explorer for accessing (read-only) Linux extended (ext2 and ext3) file systems in the Windows pc. It runs unde...

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