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.
https://signup.live.com/signup.aspx?id=60969
_______________________________________________
OpenLDAP mailing list
OpenLDAP@mail.sys-net.it
https://www.sys-net.it/mailman/listinfo/openldap