我正在嘗試使用 LDAP 同步複製。我必須向我的帳戶複製者授予權限。這是我的 ldif:
dn: olcDatabase={1}hdb,cn=config
replace: olcAccess
olcAccess: {0}to attrs = userPassword,shadowLastChange by
self write by anonymous auth by
dn="cn=admin,dc=nfsseixas,dc=br" write by
dn="cn=replicador,dc=nfsseixas,dc=br" read by * none
-
add: olcAccess
olcAccess: {1}to dn.base="" by * read
-
add: olcAccess
olcAccess: {2}to * by self write by dn="cn=admin,dc=nfsseixas,dc=br" write by * read
我正在按照步驟操作,但我看不出我做錯了什麼!
當我這樣做時:
ldapmodify -c -Y EXTERNAL -H ldapi:/// -f replica2.ldif
結果是:
ldap_modify: Other (e.g., implementation specific) error (80)
additional info: <olcAccess> handler exited with 1