日期:2014-05-16  浏览次数:20587 次

LDAP-Series-1-Chapter-1

OpenLdap | BDB(Necessary)

Install: Compile Source

Download:http://www.openldap.org/ | http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html (The Oracle Index -> Download(Register Required))

Source: openldap-2.4.32.tgz | db-5.3.21.tar.gz

  1. Install bdb
  • tar -xf db-5.3.21.tar.gz
  • cd db.../build_unix
  • ../dist/configure
  • make
  • make install (finish path:/usr/local/BerkeleyDB..)
  • Add lib path to /etc/ld.so.conf(/usr/local/BerkeleyDB.../lib), then ldconfig.
  • OR cp /usr/local/ BerkeleyDB.4.5/include/* /usr/include | cp /usr/local/ BerkeleyDB.4.5/lib/* /usr/lib
  1. Install openldap
  • tar -xf openldap-2.4.32.tgz
  • cd openldap..
  • (IF NEED export CPPFLAGS="-I/usr/local/BerkeleyDB.../include" | export LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.../lib" )
  • ./configure --prefix=PREFIX =/usr/local/openldap (Necessay, or install at /usr/local)
  • make depend
  • make
  • make test (take a so so long term | maybe can be ignore)
  • make install

Ok, install finished.

Next you need config you slapd.conf. See next chapter