xref: /netbsd-src/external/bsd/openldap/dist/tests/data/slapd-deltasync-consumer.conf (revision e670fd5c413e99c2f6a37901bb21c537fcd322d2)
1*e670fd5cSchristos# consumer slapd config -- for testing of Delta SYNC replication
2*e670fd5cSchristos# $OpenLDAP$
3*e670fd5cSchristos## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4*e670fd5cSchristos##
5*e670fd5cSchristos## Copyright 1998-2021 The OpenLDAP Foundation.
6*e670fd5cSchristos## All rights reserved.
7*e670fd5cSchristos##
8*e670fd5cSchristos## Redistribution and use in source and binary forms, with or without
9*e670fd5cSchristos## modification, are permitted only as authorized by the OpenLDAP
10*e670fd5cSchristos## Public License.
11*e670fd5cSchristos##
12*e670fd5cSchristos## A copy of this license is available in the file LICENSE in the
13*e670fd5cSchristos## top-level directory of the distribution or, alternatively, at
14*e670fd5cSchristos## <http://www.OpenLDAP.org/license.html>.
15*e670fd5cSchristos
16*e670fd5cSchristosinclude		@SCHEMADIR@/core.schema
17*e670fd5cSchristosinclude		@SCHEMADIR@/cosine.schema
18*e670fd5cSchristosinclude		@SCHEMADIR@/inetorgperson.schema
19*e670fd5cSchristosinclude		@SCHEMADIR@/openldap.schema
20*e670fd5cSchristosinclude		@SCHEMADIR@/nis.schema
21*e670fd5cSchristos#
22*e670fd5cSchristospidfile		@TESTDIR@/slapd.2.pid
23*e670fd5cSchristosargsfile	@TESTDIR@/slapd.2.args
24*e670fd5cSchristos
25*e670fd5cSchristos#mod#modulepath	../servers/slapd/back-@BACKEND@/
26*e670fd5cSchristos#mod#moduleload	back_@BACKEND@.la
27*e670fd5cSchristos#syncprovmod#modulepath ../servers/slapd/overlays/
28*e670fd5cSchristos#syncprovmod#moduleload syncprov.la
29*e670fd5cSchristos#ldapmod#modulepath ../servers/slapd/back-ldap/
30*e670fd5cSchristos#ldapmod#moduleload back_ldap.la
31*e670fd5cSchristos
32*e670fd5cSchristos#ldapyes#overlay		chain
33*e670fd5cSchristos#ldapyes#chain-uri		@URI1@
34*e670fd5cSchristos#ldapyes#chain-idassert-bind	bindmethod=simple binddn="cn=Manager,dc=example,dc=com" credentials=secret mode=self
35*e670fd5cSchristos#ldapmod#overlay		chain
36*e670fd5cSchristos#ldapmod#chain-uri		@URI1@
37*e670fd5cSchristos#ldapmod#chain-idassert-bind	bindmethod=simple binddn="cn=Manager,dc=example,dc=com" credentials=secret mode=self
38*e670fd5cSchristos
39*e670fd5cSchristos#######################################################################
40*e670fd5cSchristos# consumer database definitions
41*e670fd5cSchristos#######################################################################
42*e670fd5cSchristos
43*e670fd5cSchristosdatabase	@BACKEND@
44*e670fd5cSchristossuffix		"dc=example,dc=com"
45*e670fd5cSchristosrootdn		"cn=consumer,dc=example,dc=com"
46*e670fd5cSchristosrootpw		secret
47*e670fd5cSchristos#null#bind		on
48*e670fd5cSchristos#~null~#directory	@TESTDIR@/db.2.a
49*e670fd5cSchristos#indexdb#index		objectClass	eq
50*e670fd5cSchristos#indexdb#index		cn,sn,uid	pres,eq,sub
51*e670fd5cSchristos#ndb#dbname db_3
52*e670fd5cSchristos#ndb#include @DATADIR@/ndb.conf
53*e670fd5cSchristos
54*e670fd5cSchristos# Don't change syncrepl spec yet
55*e670fd5cSchristossyncrepl	rid=1
56*e670fd5cSchristos		provider=@URI1@
57*e670fd5cSchristos		binddn="cn=Manager,dc=example,dc=com"
58*e670fd5cSchristos		bindmethod=simple
59*e670fd5cSchristos		credentials=secret
60*e670fd5cSchristos		searchbase="dc=example,dc=com"
61*e670fd5cSchristos		filter="(objectClass=*)"
62*e670fd5cSchristos		logbase="cn=log"
63*e670fd5cSchristos		logfilter="(&(objectClass=auditWriteObject)(reqResult=0))"
64*e670fd5cSchristos		syncdata=accesslog
65*e670fd5cSchristos		attrs="*,+"
66*e670fd5cSchristos		schemachecking=off
67*e670fd5cSchristos		scope=sub
68*e670fd5cSchristos		type=refreshAndPersist
69*e670fd5cSchristos		retry="3 +" interval=00:00:00:03
70*e670fd5cSchristosupdateref	@URI1@
71*e670fd5cSchristos
72*e670fd5cSchristosoverlay		syncprov
73*e670fd5cSchristos
74*e670fd5cSchristosdatabase	monitor
75