覚え書き

OpenLDAP を cyrus-sasl 付きでインストールしたのでメモメモ。

export SASL_PATH=/usr/local/cyrus-sasl-2.1.22/lib

$ sudo groupadd ldap
$ sudo useradd -g ldap ldap -d /dev/null -s /sbin/nologin

CFLAGS='-I/usr/local/db-4.4.20/include -I/usr/local/cyrus-sasl-2.1.22/include' \
CPPFLAGS='-I/usr/local/db-4.4.20/include -I/usr/local/cyrus-sasl-2.1.22/include' \
LDFLAGS='-L/usr/local/db-4.4.20/lib/libdb -L/usr/local/cyrus-sasl-2.1.22/lib' \
LD_LIBRARY_PATH='/usr/local/db-4.4.20 -L/usr/local/cyrus-sasl-2.1.22/lib' \
./configure --prefix=/usr/local/openldap-2.4.7 --with-cyrus-sasl