Amazon ec2 AmazonLinux上的LDAP配置

Amazon ec2 AmazonLinux上的LDAP配置,amazon-ec2,ldap,openldap,Amazon Ec2,Ldap,Openldap,我试图在Amazon Linux上安装openldap,但出现以下错误: olcRootPW: value #0: <olcRootPW> can only be set when rootdn is under suffix config error processing olcDatabase={1}monitor,cn=config: <olcRootPW> can only be set when rootdn is under suffix slaptest:

我试图在Amazon Linux上安装openldap,但出现以下错误:

olcRootPW: value #0: <olcRootPW> can only be set when rootdn is under suffix
config error processing olcDatabase={1}monitor,cn=config: <olcRootPW> can only be set when rootdn is under suffix
slaptest: bad configuration file!
olcRootPW:value#0:只能在rootdn位于后缀下时设置
处理olcDatabase={1}监视器时发生配置错误,cn=config:只能在rootdn位于后缀下时设置
slaptest:错误的配置文件!

我还尝试将olcRootPW放在olcDatabase={2}bdb.ldif文件中,但这只会产生相同的错误。有什么建议吗?

信息很清楚。如果rootDN位于数据库的后缀之下,则只能在监视器数据库上设置密码。换句话说,rootDN必须以'cn=monitor,cn=config'结尾。

消息非常清楚。如果rootDN位于数据库的后缀之下,则只能在监视器数据库上设置密码。换句话说,rootDN必须以'cn=monitor,cn=config'结尾。

请尝试在文件
olcDatabase={2}hdb.ldif中添加它,如下所示

olcSuffix: dc=my-domain,dc=com

olcRootDN: cn=manager,dc=my-domain,dc=com

olcRootPW: {SSHA}---password---

在文件
olcDatabase={2}hdb.ldif

olcSuffix: dc=my-domain,dc=com

olcRootDN: cn=manager,dc=my-domain,dc=com

olcRootPW: {SSHA}---password---