ACLおよびLDAP構成警告?

ACLおよびLDAP構成警告?

使用しようとすると、次のエラーが発生します。ldapsearch

ldap_bind: Invalid credentials (49)

slapdその後、LDAP コマンドを使用してデバッグすると、次の出力が表示されます。

58c1b1fa /etc/openldap/slapd.d: line 1: warning: cannot assess the validity of the ACL scope within backend naming context

私はLDAP 2.4を使用しているので、次のものを含むLDIFファイルを使用する必要があります。

dn: olcDatabase={1}monitor,cn=config
changetype: modify
replace: olcAccess
olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth"
  read by dn.base="cn=Manager,dc=domain,dc=com" read by * none

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

dn: olcDatabase={2}bdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: cn=Manager,dc=domain,dc=com

dn: olcDatabase={2}bdb,cn=config
changetype: modify
add: olcRootPW
olcRootPW: pass

dn: olcDatabase={2}bdb,cn=config
changetype: modify
add: olcAccess
olcAccess: {0}to attrs=userPassword,shadowLastChange by
  dn="cn=Manager,dc=domain,dc=com" write by anonymous auth by self write by * none
olcAccess: {1}to dn.base="" by * read
olcAccess: {2}to * by dn="cn=Manager,dc=domain,dc=com" write by * read

私のLDIFファイルはこのACLエラーを引き起こしますか?では、どうすれば解決できますか?そうでない場合、この問題の原因は何ですか?

ベストアンサー1

あなたのldifはおそらく大丈夫でしょう。しかし、確実にするにはこれを見てください。 49は無効なパスワードです。ユーザーDNとパスワードを確認してください

おすすめ記事