【发布时间】:2018-08-13 13:55:17
【问题描述】:
我正在将一个有效的 OpenLDAP 2.3.43 设置迁移到新 RHEL 服务器上的 OpenLDAP 2.4.44。我已经使用 slapcat 复制了数据并使用 slapadd 成功导入。适用于 2.3 的 ldapsearch 不适用于 2.4 并产生 ldap_bind: Invalid credentials (49)。以下是 slapd.conf 的相关部分:
access to dn.base="" by * read
access to dn.base="cn=Subschema" by * read
access to *
by self write
by users read
by anonymous read
database bdb
cachesize 10000
suffix "o=itsso"
checkpoint 128 5
rootdn "cn=admin,o=itsso"
rootpw {CRYPT}55qEg16ldm0Bo
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
这里是 ldapsearch 命令:
ldapsearch -h localhost -D "cn=admin,o=itsso" -W -b o=itsso -s sub mail="first.last@xyz.org"
【问题讨论】:
标签: openldap