我正在尝试使用 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