我在運行OpenLDAP 2.4-28 on XUBUNTU 12.04。ldap_bind:無效的證書(49)
我在閱讀「掌握OpenLDAP」並配合本書一起配置。
當我嘗試執行下面的搜索(第47頁):
$ ldapsearch -x -W -D 'cn=Manager,dc=example,dc=com' -b "" -s base
提示我輸入密碼。然後我進入 「祕密」,但我得到了以下錯誤:
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
順祝商祺 Ali Reza
有點相關:http://wiki.openiam.com/pages/viewpage.action?pageId=7635198 – cregox 2014-08-11 21:17:10
你有沒有找到這個@alibaba的答案?我收到了同樣的錯誤。 – Matt 2015-03-20 21:48:28