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

發佈了33 篇原創文章 · 獲贊 7 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章