Difference between revisions of "OpenLDAP"

From CBLFS
Jump to navigationJump to search
Line 36: Line 36:
  
 
  ./configure --prefix=/usr --sysconfdir=/etc \
 
  ./configure --prefix=/usr --sysconfdir=/etc \
     --libexecdir=/usr/sbin --localstatedir=/srv/ldap --disable-debug \
+
     --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
Line 60: Line 60:
  
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc \
 
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc \
     --libexecdir=/usr/sbin --localstatedir=/srv/ldap --disable-debug \
+
     --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
Line 78: Line 78:
  
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --sysconfdir=/etc \
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --sysconfdir=/etc \
     --libexecdir=/usr/sbin --localstatedir=/srv/ldap --disable-debug \
+
     --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
Line 96: Line 96:
  
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc \
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc \
     --libexecdir=/usr/sbin --localstatedir=/srv/ldap --disable-debug \
+
     --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
 
     --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \

Revision as of 16:27, 30 July 2008

Download Source: ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.19.tgz

Introduction to OpenLDAP

The OpenLDAP package provides an open source implementation of the Lightweight Directory Access Protocol.

Project Homepage: http://www.openldap.org/

Dependencies

Required

Recommended

Optional

Configuration Information

If you really want to build OpenLDAP with GNU Database Manager instead of Berkeley DB, add the following flags to configure script:

--disable-bdb --disable-hdb --with-ldbm-api=gdbm

Non-Multilib

Compile the package:

./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
    --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
    --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
    --enable-monitor=mod --enable-perl=mod --enable-relay=mod \
    --enable-dyngroup=mod --enable-dynlist=mod --enable-memberof=mod \
    --enable-ppolicy=mod --enable-valsort=mod &&
make

Install the package

make install &&
chmod -v 755 /usr/lib/libl{dap,ber}*.so* &&
install -dv -m755 /usr/share/doc/openldap-2.4.19/{drafts,guide,rfc} &&
install -v -m644 doc/drafts/* /usr/share/doc/openldap-2.4.19/drafts &&
install -v -m644 doc/rfc/*    /usr/share/doc/openldap-2.4.19/rfc &&
cp -Rv doc/guide/*          /usr/share/doc/openldap-2.4.19/guide

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
    --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
    --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
    --enable-monitor=mod --enable-perl=mod --enable-relay=mod \
    --enable-dyngroup=mod --enable-dynlist=mod --enable-memberof=mod \
    --enable-ppolicy=mod --enable-valsort=mod &&
make

Install the package

make install &&
chmod -v 755 /usr/lib/libl{dap,ber}*.so*

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
    --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
    --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
    --enable-monitor=mod --enable-perl=mod --enable-relay=mod \
    --enable-dyngroup=mod --enable-dynlist=mod --enable-memberof=mod \
    --enable-ppolicy=mod --enable-valsort=mod &&
make

Install the package

make install &&
chmod -v 755 /usr/lib32/libl{dap,ber}*.so*

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc \
    --libexecdir=/usr/lib/openldap --localstatedir=/srv/ldap --disable-debug \
    --enable-dynamic --enable-crypt --enable-modules --enable-wrappers \
    --enable-bdb=mod --enable-hdb=mod --enable-ldap=mod \
    --enable-monitor=mod --enable-perl=mod --enable-relay=mod \
    --enable-dyngroup=mod --enable-dynlist=mod --enable-memberof=mod \
    --enable-ppolicy=mod --enable-valsort=mod &&
make

Install the package

make install &&
chmod -v 755 /usr/lib64/libl{dap,ber}*.so*
install -dv -m755 /usr/share/doc/openldap-2.4.19/{drafts,guide,rfc} &&
install -v -m644 doc/drafts/* /usr/share/doc/openldap-2.4.19/drafts &&
install -v -m644 doc/rfc/* /usr/share/doc/openldap-2.4.19/rfc &&
cp -Rv doc/guide/* /usr/share/doc/openldap-2.4.19/guide
Retrieved from "?title=OpenLDAP&oldid=14923"