openldap在centos7下安装

11月 30, 2017 |

下载源码包
http://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.45.tgz
http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz

yum install libtool-ltdl-devel

编译安装berkeley-db
cd db-4.8.30/build_unix/
../dist/configure
make
make install

编译安装openldap
openldap-2.4.45支持的berkeley版本为4.4以上, 6.0.20一下,具体的可以查看openldap的configure文件的DB_VERSION_FULL变量的定义
LDFLAGS="-Wl,-rpath=/usr/local/BerkeleyDB.4.8/lib,-L=/usr/local/BerkeleyDB.4.8/lib" CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.8/include" ./configure --enable-bdb
make depend
make
make test
如果测试不通过查看tests/testrun/slapd.1.log文件中的内容

Posted in: Linux

Comments are closed.