$ tar xvfz openldap-2.0.17.tgz $ cd openldap-2.0.17 $ ./configure --enable-wrappers --enable-modules --enable-ldap --enable-sql (snip) checking for cc option to accept ANSI C... none needed checking for cc depend flag... -M checking for afopen in -ls... no checking for ltdl.h... no configure: error: could not locate libtool ltdl.h |
$ ./configure --enable-wrappers --enable-modules --enable-ldap --enable-sql (snip) checking for openssl/ssl.h... no checking for ssl.h... no configure: warning: Could not locate TLS/SSL package configure: warning: TLS privacy protection not supported! (snip) checking for main in -lnsl... yes checking for openlog... yes checking for SQLDriverConnect in -liodbc... no checking for SQLDriverConnect in -lodbc... no configure: error: could not locate suitable ODBC library |
$ ./configure --enable-wrappers --enable-modules --enable-ldap --enable-sql (snip) checking for openssl/ssl.h... no checking for ssl.h... no configure: warning: Could not locate TLS/SSL package configure: warning: TLS privacy protection not supported! (snip) checking for sasl.h... no configure: warning: Could not locate Cyrus SASL configure: warning: SASL authentication not supported! configure: warning: Strong authentication not supported! |
$ su # cd /usr/local/include # ln -s /usr/local/ssl/include/openssl openssl # exit $ ./configure --enable-wrappers --enable-modules --enable-ldap --enable-sql (snip) checking for openssl/ssl.h... yes checking for ssl.h... no checking for SSLeay_add_ssl_algorithms in -lssl... no checking for SSL_library_init in -lssl... no checking for ssl3_accept in -lssl... no configure: warning: Could not locate TLS/SSL package configure: warning: TLS privacy protection not supported! |
# cd /usr/local/lib # ln -s /usr/local/ssl/lib/libssl.a libssl.a |
# cd /usr/lib # ln -s /usr/local/ssl/lib/libssl.a libssl.a |
$ make depend $ make $ make test cd tests; make test make[1]: 入ります ディレクトリ `/usr/local/src/openldap-2.0.17/tests' ln: ./data: cannot overwrite directory make[1]: [test-ldbm] エラー 1 (無視されました) ln: ./schema: File exists make[1]: [test-ldbm] エラー 1 (無視されました) Initiating LDAP tests for LDBM... >>>>> Executing all LDAP tests... >>>>> Test Directory: . >>>>> Backend: ldbm >>>>> Starting test000-rootdse ... running defines.sh . ldbm Datadir is ./data Cleaning up in ./test-db... Starting slapd on TCP/IP port 9009... Using ldapsearch to retrieve all the entries... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ldap_bind: Can't contact LDAP server >>>>> Test failed >>>>> ./scripts/test000-rootdse failed (exit 1) make[1]: *** [test-ldbm] エラー 1 make[1]: 出ます ディレクトリ `/usr/local/src/openldap-2.0.17/tests' make: *** [test] エラー 2 |
$ su # make install # exit |
$ /usr/local/bin/ldapsearch -x -b 'o=sample,c=JP' '(objectClass=*)' ldap_bind: Can't contact LDAP server |
$ make distclean $ ./configure $ make depend $ make $ make test $ su # make install # exit |
slapd : xxx.xxx.xxx. 127.0.0.1 |
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema <-- 追加
include /usr/local/etc/openldap/schema/inetorgperson.schema <-- 追加
(snip)
#suffix "o=My Organization Name,c=US"
suffix "o=HOGEHOGE KK,c=JP"
~~~~~~~~~~~ ~~ 修正
#rootdn "cn=Manager,o=My Organization Name,c=US"
rootdn "cn=Manager,o=HOGEHOGE KK,c=JP"
~~~~~~~ ~~~~~~~~~~~ ~~
(snip)
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw {SSHA}XXXXXXXXXXXXXXXXXXXXXXXXXXX
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 修正
(snip)
# Indices to maintain
index objectClass eq
index cn,sn,givenName,uid,mail pres,eq,sub <--- 追加
(snip)
access to attr=userPassword <--- 追加
by self write <--- 追加
by anonymous auth <--- 追加
by dn="cn=Manager,o=HOGEHOGE KK,c=JP" write <--- 追加
by * none <--- 追加
access to * <--- 追加
by dn="cn=SO,o=TOYOTA DIGITAL CRUISE,c=JP" write <--- 追加
by * read <--- 追加
|
$ /usr/local/sbin/slappasswd -s <暗号化したいパスワード文字列>
{SSHA}XXXXXXXXXXXXXXXXXXXXXXXXXXX
|
$ tar xvfz openldap-2.1.17.tgz $ cd openldap-2.1.17 ./configure --enable-wrappers --enable-modules --enable-ldap --enable-sql (snip) checking for openssl/ssl.h... no checking for ssl.h... no configure: warning: Could not locate TLS/SSL package configure: warning: TLS data protection not supported! (snip) checking for Berkeley DB thread support... yes checking Berkeley DB version for BDB backend... no configure: error: BDB: BerkeleyDB version incompatible |
$ CPPFLAGS=-I/usr/local/BerkeleyDB.4.1/include LDFLAGS=-L/usr/local/BerkeleyDB.4.1/lib \
./configure --enable-wrappers --enable-modules --enable-ldap --enable-sql
$ make depend
$ make
$ make test
(snip)
Filtering expected LDIF for comparison...
Comparing filter output...
>>>>> Test succeeded
>>>>> ./scripts/test016-subref completed OK.
>>>>> waiting 10 seconds for things to exit
ln: ./data: cannot overwrite directory
make[1]: [test-ldbm] エラー 1 (無視されました)
ln: ./schema: File exists
make[1]: [test-ldbm] エラー 1 (無視されました)
run configure with --enable-ldbm
make[1]: 出ます ディレクトリ `/usr/local/src/openldap-2.1.17/tests'
|
$ make bdb make: *** ターゲット `bdb' を make するルールがありません. 中止。 |
$ cd tests $ make bdb |
$ su # make install # exit |