XUBUNTU12.04でOpenLDAP2.4-28を実行しています。
私は「OpenLDAPのマスター」を読んでいて、本と一緒に設定しています。
次の検索を実行しようとすると(47ページ):
$ ldapsearch -x -W -D 'cn=Manager,dc=example,dc=com' -b "" -s base
パスワードの入力を求められます。次に「secret」と入力しますが、次のエラーが発生します。
ldap_bind: Invalid Credentials (49).
以下は私のslapd.conf
です:
# slapd.conf - Configuration file for LDAP SLAPD
##########
# Basics #
##########
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
loglevel none
modulepath /usr/lib/ldap
# modulepath /usr/local/libexec/openldap
moduleload back_hdb
##########################
# Database Configuration #
##########################
database hdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
directory /var/lib/ldap
# directory /usr/local/var/openldap-data
index objectClass,cn eq
########
# ACLs #
########
access to attrs=userPassword
by anonymous auth
by self write
by * none
access to *
by self write
by * none
そしてここにldap.confがあります:
# LDAP Client Settings
URI ldap://localhost
BASE dc=example,dc=com
BINDDN cn=Manager,dc=example,dc=com
SIZELIMIT 0
TIMELIMIT 0