我找不到cn = config“ ldap_modify:没有这样的对象32”

问题描述

我是OpenLdap的新手。我得到了一个openldap无效的凭证(49) 错误,因此我想根据此指南更改密码:https://linux-note.com/centos-7-ldap/
我使用slappasswd如下:

root@centos~#: slappasswd

然后:

Re-enter new password:
{SSHA}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

db.ldif的内容:

dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcSuffix
olcSuffix: dc=NG,dc=com

dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: cn=ldapadm,dc=NG,cn=config
changetype: modify
replace: olcRootPW
olcRootPW: {SSHA}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

我将ldapmodify用作波纹管:

ldapmodify -Y EXTERNAL  -H ldapi:/// -f db.ldif

我的ldap.log的结果是:

    op=1 MOD dn="olcDatabase={2}hdb,cn=config"
 conn=1001 op=1 MOD attr=olcSuffix
    VM2CO7 slapd[1197]: conn=1001 op=1 RESULT tag=103 err=32 text=
    VM2CO7 slapd[1197]: conn=1001 op=2 UNBIND
    VM2CO7 slapd[1197]: conn=1001 fd=10 closed

我该如何解决?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)