Devi scrivere la direttiva syncrepl con tutti i suoi parametri su una sola riga. Vedi man slapd.conf Se per motivi di leggibilità preferisci scrivere i parametri in righe diverse (come di solito si fa), queste righe devono iniziare con uno spazio o una tabulazione.

Ciao
MArco



Il 18/06/2010 13:58, Alessandro Mantovani ha scritto:
Salve a tutti,
Vorrei replicare un mio server LDAP.
Questo è il file smb.conf del MASTER:
include         /etc/ldap/schema/tutti.include
include         /etc/ldap/azienda/local.at.conf
include         /etc/ldap/azienda/persona.oc.conf
include         /etc/ldap/azienda/org.oc.conf

pidfile         /var/run/slapd/slapd.pid
argsfile        /var/run/slapd/slapd.args

loglevel        sync
sizelimit 20000
threads 64
idletimeout 60
timelimit 30

modulepath    /usr/lib/ldap
moduleload    back_bdb
moduleload      syncprov

backend        bdb
database        bdb

suffix      "o=azienda,c=IT"
rootdn      "cn=root,o=azienda,c=IT"
rootpw      prova
directory   /var/lib/ldap
cachesize   300000

overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 200

index entryCSN,entryUUID eq
index cn,sn,mail,o,ou,givenname pres,eq,sub,subinitial
index uid,member,uidNumber,gidNumber,segretaria,uidManager,memberUid pres,eq
index codicefiscale,statusLdap,statoscadenze pres,eq
index objectclass pres,eq
index sambaSID eq
index sambaPrimaryGroupSID eq
index sambaDomainName eq

access to attrs=userPassword,sambaNTPassword,sambaLMPassword
     by dn="cn=root,o=azienda,c=IT" write
     by dn="uid=replicant,ou=Persone,o=azienda,c=IT"
     by anonymous auth
     by self write
     by * none


access to *
    by * read
        by dn="cn=root,o=azienda,c=IT" write


Questo è il file smb.conf del SLAVE:

include         /etc/ldap/schema/tutti.include
include         /etc/ldap/azienda/local.at.conf
include         /etc/ldap/azienda/persona.oc.conf
include         /etc/ldap/azienda/org.oc.conf

pidfile         /var/run/slapd/slapd.pid
argsfile        /var/run/slapd/slapd.args

loglevel        sync
sizelimit 20000
threads 64
idletimeout 60
timelimit 30

modulepath    /usr/lib/ldap
moduleload    back_bdb

backend        bdb
database        bdb

suffix      "o=azienda,c=IT"
rootdn      "cn=root,o=azienda,c=IT"
rootpw      prova
directory   /var/lib/ldap
cachesize   300000

syncrepl rid=001
provider=ldap://172.16.5.36:389
searchbase="o=azienda,c=IT"
type=refreshAndPersist
filter="(objectClass=*)"
scope=sub
schemachecking=off
bindmethod=simple
binddn="uid=replicant,ou=Persone,o=azienda,c=IT"
credentials=secret


index cn,sn,mail,o,ou,givenname pres,eq,sub,subinitial
index uid,member,uidNumber,gidNumber,segretaria,uidManager,memberUid pres,eq
index codicefiscale,statusLdap,statoscadenze pres,eq
index objectclass pres,eq
index sambaSID eq
index sambaPrimaryGroupSID eq
index sambaDomainName eq

access to attrs=userPassword,sambaNTPassword,sambaLMPassword
        by dn="cn=root,o=azienda,c=IT" write
        by anonymous auth
        by self read
    by * none


access to *
    by * read
        by dn="cn=root,o=azienda,c=IT" write


L'errore che mi restituisce il DEBUG quando lancio il server SLAVE è:
/etc/ldap/slapd.conf: line 80: Error: Malformed "syncrepl" line in slapd config file, missing provider searchbase.
failed to add syncinfo
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.


Qualcuno riesce ad aiutarmi con quest'errore?

Grazie mille

Buonagiornata




------------------------------------------------------------------------
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now. <https://signup.live.com/signup.aspx?id=60969>


_______________________________________________
OpenLDAP mailing list
OpenLDAP@mail.sys-net.it
https://www.sys-net.it/mailman/listinfo/openldap


--

/Marco D'Ettorre//
/
*Gruppo** Partners Associates*
Tel. Milano +39 02 67380435* *- Udine +39 0432 689815 - Roma +39 06 54832300
Fax Milano +39 02 67386214 - Udine +39 0432 570120 - Roma +39 06 91659273
Cell. +39 348 1510674
Email: marco.detto...@gruppopa.it <mailto:marco.detto...@gruppopa.it>
Sito: www.GruppoPA.it <http://www.GruppoPA.it>


Prima di stampare, pensa all'ambiente ** Think about the environment before printing

_______________________________________________
OpenLDAP mailing list
OpenLDAP@mail.sys-net.it
https://www.sys-net.it/mailman/listinfo/openldap

Reply via email to