第一次接觸這個東西,有種很混亂的感覺,啃些文檔,安裝一個再說...
- 下載必需的軟件:Berkeley DB?和 OpenLDAP
- 安裝Berkeley DB
tar -zxvf db-4.5.20.tar.gz
cd db-4.5.20/build_unix
../dist/configure --prefix=/usr/local/BerkeleyDB.4.5
make
make intall
- 安裝OpneLDAP
這個變量很重要,如果出現錯誤:Berkeley DB version mismatch,就加上吧~
export LD_LIBRARY_PATH=/data/install/db-4.5.20/build_unix/.libs()
據說一定要的
export CPPFLAGS="-I/usr/local/BerkeleyDB.4.5/include"
export LDFLAGS="-L/usr/local/BerkeleyDB.4.5/lib"
./configure --prefix=/usr/local/openldap --enable-ldbm
make depens
make
make test
敲完回車,然后去打個盹,醒來后
make install
- 啟動,進入安裝目錄的libexec
./slapd -d 1
如果一切順利,運行如下命令會看到點什么的 ^_^,
ldapsearch -x -s base (objectclass=*) namingContexts
一些可以做參考的OpenLDAP資料:
官網:http://www.openldap.org/
For Win32:http://lucas.bergmans.us/hacks/openldap/
快速指南:http://www.wzsky.net/html/System/Linux/71587.html
詳細介紹:http://blog.csdn.net/porcupinefinal/archive/2006/04/03/649598.aspx
學習筆記:http://man.lupaworld.com/content/manage/ringkee/openldap.htm
posted on 2007-03-12 23:12
阿姆斯壯 閱讀(339)
評論(0) 編輯 收藏 所屬分類:
基礎很重要