end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

OpenAM for OpenLDAP におけるレプリケーション

多分、↓これで、実現できるはず

$ vi /tmp/repl_server_1.ldif
# replace ServerID
dn: cn=config
changetype: modify
replace: olcServerID
olcServerID: 1

# mirror mode setup
dn: olcDatabase={2}bdb,cn=config
changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=ldap://openam002.mart-eim.com searchbase="dc=sso,dc=mart-eim,dc=com" schemachecking=on bindmethod=simple binddn="cn=Manager,dc=sso,dc=mart-eim,dc=com" credentials=ないしょ type=refreshAndPersist retry="60 +"
-
add: olcMirrorMode
olcMirrorMode: TRUE

$ ldapadd -x -w LDAPのパスワード -D cn=config -f /tmp/repl_server_1.ldif