On 2010.07.28. 10:44, Makó Gábor wrote:
>
> Hi!
>
> Egy replikáló openldap a kérdés (2 gép).
> A doksi (http://www.openldap.org/doc/admin24/replication.html)
> szerint:
>
> 1. Provider sldap szerver (slapd.conf):
>       database bdb
         ^^^^^^^^^^^^
>
> 2. Consumer slapd szerver (slapd.conf):
>           database hdb
             ^^^^^^^^^^^^


> Ezt a binddn="cn=syncuser,dc=example,dc=com" usert az Provider-en
> létre is kell hozni gondolom.

Csak a provideren kell, a consumeren letrejon.

> Kell ennek valami különleges
> jogosultságot adni?

read kell, es erdemes a limiteket kikapcsolni.

>
> Elvileg csak ennyi a (lényeges) konfig a replikáló slapd-hez?

Nem, mert nem olvastad vegig a documentaciot, igy a lenyegrol 
lemaradtal: mar tud multimastert, mirrormodet, igy nem kell consumer es 
provider. Ilyesmire ird at mindketto konfigjat:

overlay                         syncprov
syncprov-checkpoint             100 10
syncprov-sessionlog             100

serverid                        1       ldap://egyikldap.x.y
serverid                        2       ldap://masikldap.x.y

syncrepl rid=1
         provider=ldap://egyikldap.x.y
         binddn="cn=replicator,dc=x,dc=y"
         bindmethod=simple
         credentials=secret
         searchbase="dc=x,dc=y"
         type=refreshAndPersist
         interval=00:00:00:10
         retry="5 5 300 +"
         timeout=1

syncrepl rid=2
         provider=ldap://masikldap.x.y
         binddn="cn=replicator,dc=x,dc=y"
         bindmethod=simple
         credentials=secret
         searchbase="dc=x,dc=y"
         type=refreshAndPersist
         interval=00:00:00:10
         retry="5 5 300 +"
         timeout=1

mirrormode                      true

access to dn.subtree="dc=x,dc=y"
         by dn.exact="cn=replicator,dc=x,dc=y" read

limits dn.exact="cn=replicator,dc=x,dc=y"
         size=unlimited
         time=unlimited


> (Nyilván a LDAP fát is létre kell hozni pl. scriptből. Ez ok.)

Nem kell semmit csinalni a consumeren.

-- 
Gabor HALASZ <[email protected]>
_________________________________________________
linux lista      -      [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz