Hi,
On 15/07/2010 17:46, alexander@nautae.eti.br wrote:
Hi.
I've read the following document:
http://www.openldap.org/doc/admin23/syncrepl.html
And this document too:
http://www.openldap.org/doc/admin23/slapdconfig.html#syncrepl
So, after do my configurations, I get the following error message when I start my slave:
/etc/openldap/slapd.conf: line 79: frontend database cannot be shadow.
That line (79) is the last line or my syncrepl directive as:
moduleload syncprov
rootdn "cn=admin,dc=exemple,dc=com" syncrepl rid=0 provider=ldap://10.0.0.222:389 type=refreshAndPersist retry="60 10 300 +" searchbase="dc=example,dc=com" schemachecking=off bindmethod=simple binddn="cn=admin,dc=example,dc=com" credentials=!tsm!n3
Yes, I've tried to put all the syncrepl directives in the same line, and I've got the same error.
I've put all those lines right below the section with 'moduleload' lines in slapd.conf.
'moduleload' is a global configuration option, and should be placed at the beginning of your configuration file (before any database xyz statements).
'syncrepl' and 'rootdn' are database-specific configuration options, and should be placed after the corresponding 'database xyz' line.
You should try moving the 'moduleload syncprov' line nearer the top of your configuration file.
Although, if you just want to replicate a database (ie, this service is a consumer) and not provide it for other servers to replicate, you don't need syncprov.
Regards, Jonathan