我的 slapd.conf 中有以下条目
#######################################################################
# ldbm and/or bdb database definitions
#######################################################################
#backend hdb
database bdb
suffix "dc=example,dc=com"
checkpoint 1024 15
rootdn "cn=Manager,dc=example,dc=com"
rootpw {SSHA}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
directory /var/lib/ldap
index objectClass eq,pres
######################################################################
database monitor
access to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
by dn.exact="cn=Manager,dc=example,dc=com" read
by * none
Run Code Online (Sandbox Code Playgroud)
当我尝试编写以下命令时
ldapadd -x -W -D "cn=Manager,dc=example,dc=com" -f ldapuser100.ldif
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
adding new entry "uid=ldapuser100,ou=People,dc=example,dc=com"
ldap_add: No such object (32)
Run Code Online (Sandbox Code Playgroud)
以下是调试:
oc_check_allowed type "structuralObjectClass"
bdb_dn2entry("uid=ldapuser100,ou=people,dc=example,dc=com")
=> bdb_dn2id("dc=example,dc=com")
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30988) …Run Code Online (Sandbox Code Playgroud) openldap ×1