我正在尝试在 RHEL 7 上的 LDAP 服务器上执行多主复制,但在运行命令时出现以下错误:
#ldapmodify -Y EXTERNAL -H ldapi:/// -f ldap01.ldif
"ldap_modify: Server is unwilling to perform (53) additional info: shadow context; no update referral" ERROR in my ldap server
以下是 ldap01.ldif 文件的内容:
dn: cn=config
changetype: modify
replace: olcServerID
olcServerID: 1 ldap://MasterLDAP.ut.bob.com
olcServerID: 2 ldap://MasterLDAPReplica.ut.bob.com
dn: olcDatabase={0}config,cn=config
changetype:modify
add: olcSyncrepl
olcSyncrepl: rid=001
provider=ldap://MasterLDAP.ut.bob.com
binddn="cn=config"
bindmethod=simple
credentials=utkrisht
searchbase="cn=config"
type=refreshAndPersist
retry="5 5 300 +"
timeout=1
olcSyncrepl: rid=002
provider=ldap://MasterLDAPReplica.ut.bob.com
binddn="cn=config"
bindmethod=simple
credentials=utkrisht
searchbase="cn=config"
type=refreshAndPersist
retry="5 5 300 +"
timeout=1
-
add: olcMirrorMode
olcMirrorMode: TRUE