open ldap

sudo env CPPFLAGS="-I/usr/BerkeleyDB/include" LDFLAGS="-L/usr/BerkeleyDB/lib" ./configure --prefix=/usr/openldap-2.4.34 --sysconfdir=/etc --enable-ldbm --enable-lmpasswd --enable-spasswd --enable-dbb -enable-ldap

./configure --prefix=/usr/openldap-2.4.34 --sysconfdir=/etc --enable-ldbm --enable-lmpasswd --enable-spasswd --enable-dbb -enable-ldap
./configure --prefix=/usr/local/openldap --sysconfdir=/etc --enable-ldbm --enable-lmpasswd --enable-spasswd --enable-bdb --enable-ldap

openssl :
http://blog.youkuaiyun.com/dreamcode/article/details/3882346

configure: error: BDB/HDB: BerkeleyDB not available
http://juven.blog.51cto.com/749867/152969
http://thelinuxboy.wordpress.com/2012/04/29/openldap-error-bdbhdb-berkeleydb-not-available/

configure: error: Berkeley DB version mismatch
http://forums.devshed.com/ldap-programming-76/configure-error-berkeley-db-version-mismatch-181705.html
export LD_LIBRARY_PATH="/home/bompada/db-4.2.52.NC/build_unix/.libs"


configure: error: Could not locate Cyrus SASL
安装 Cyrus-SASL
http://blog.youkuaiyun.com/aylazhang/article/details/1678790
./configure --prefix=/usr/local/sasl --enable-cram --enable-plain --enable-digest --disable-anon --enable-krb4 --enable-ntlm

当 make 时候出现:
Cyrus SASL digestmd5.c:4037:15: error: #elif with no expression
http://www.linuxquestions.org/questions/linux-from-scratch-13/cyrus-sasl-2-1-23-fails-compiling-on-lfs-846940/
sed -i.bak 's/#elif WITH_DES/#elif defined(WITH_DES)/' plugins/digestmd5.c

安装 ,执行
./configure --prefix=/usr/local/openldap --sysconfdir=/etc --enable-ldbm --enable-lmpasswd --enable-spasswd --enable-bdb --enable-ldap

password : admin123
{MD5}AZICOnu9cyUFFvBp3xi1AA==

sudo /usr/local/openldap/libexec/slapd
出现
error while loading shared libraries: libdb-4.8.so: cannot open shared object file: No such file or directory
http://www.360doc.com/content/11/0420/16/11586_111051270.shtml


cd /usr/local/lib
sudo ln -s /usr/local/BerkeleyDB/lib/libdb-4.8.so
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值