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.csdn.net/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.csdn.net/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

你可能感兴趣的:(openLdap)