只能安装时 rootdn 在后缀下

有人可以帮助我解决这个错误吗?

5c18d91d ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config.ldif"
5c18d91d olcRootPW: value #0: <olcrootpw> can only be set when rootdn is under suffix
5c18d91d config error processing cn=config: <olcrootpw> can only be set when rootdn is under suffix
slaptest: bad configuration file!

我的

olcDatabase\=\{2\}hdb.ldif

是一个 :

dn: olcDatabase={2}hdb
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {2}hdb
olcDbDirectory: /var/lib/ldap
olcRootDN: cn=admin,dc=10.6.113.60
olcSuffix: dc=10.6.113.60
olcDbIndex: objectClass eq,pres
olcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub
structuralObjectClass: olcHdbConfig
entryUUID: cd57a4aa-85c3-1038-887e-196d6c686da6
creatorsName: cn=config
createTimestamp: 20181126123738Z
entryCSN: 20181126123738.098670Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20181126123738Z

</olcrootpw></olcrootpw>
已邀请:

君笑尘

赞同来自:

您手动编辑文件 LDIF, 你的第一个错误是什么,即使这些文件中的每一个都有警告,请不要这样做。

第二个错误告诉你根本 DN 必须:A。) 安装在某事物上,是什么b) 它位于数据库后缀下,这是

cn=config

, 例如,

cn=manager,cn=config

.

我怀疑您手动安装了密码

/etc/openldap/slapd.d/cn=config.ldif

是什么造成的两次错误。

要回复问题请先登录注册