1# consumer slapd config -- for testing of SYNC replication with intermediate proxy
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2021 The OpenLDAP Foundation.
6## All rights reserved.
7##
8## Redistribution and use in source and binary forms, with or without
9## modification, are permitted only as authorized by the OpenLDAP
10## Public License.
11##
12## A copy of this license is available in the file LICENSE in the
13## top-level directory of the distribution or, alternatively, at
14## <http://www.OpenLDAP.org/license.html>.
15
16include             @SCHEMADIR@/core.schema
17include             @SCHEMADIR@/cosine.schema
18include             @SCHEMADIR@/inetorgperson.schema
19include             @SCHEMADIR@/openldap.schema
20include             @SCHEMADIR@/nis.schema
21#
22pidfile             @TESTDIR@/slapd.1.pid
23argsfile  @TESTDIR@/slapd.1.args
24
25#mod#modulepath     ../servers/slapd/back-@BACKEND@/
26#mod#moduleload     back_@BACKEND@.la
27#syncprovmod#modulepath ../servers/slapd/overlays/
28#syncprovmod#moduleload syncprov.la
29#ldapmod#modulepath ../servers/slapd/back-ldap/
30#ldapmod#moduleload back_ldap.la
31
32#######################################################################
33# provider database definitions
34#######################################################################
35
36database  @BACKEND@
37suffix              "dc=example,dc=com"
38rootdn              "cn=Manager,dc=example,dc=com"
39rootpw              secret
40#~null~#directory   @TESTDIR@/db.1.a
41#indexdb#index                objectClass         eq
42#indexdb#index                cn,sn,uid pres,eq,sub
43#indexdb#index                entryUUID,entryCSN  eq
44#ndb#dbname db_1
45#ndb#include @DATADIR@/ndb.conf
46
47overlay   syncprov
48syncprov-sessionlog 100
49
50#######################################################################
51# consumer proxy database definitions
52#######################################################################
53
54database  ldap
55hidden              on
56suffix              "dc=example,dc=com"
57rootdn              "cn=Whoever"
58uri                 @URI2@
59
60acl-bind  bindmethod=simple
61                    binddn="cn=Monitor"
62                    credentials=monitor
63
64# Don't change syncrepl spec yet
65
66syncrepl  rid=1
67                    provider=@URI1@
68                    binddn="cn=Manager,dc=example,dc=com"
69                    bindmethod=simple
70                    credentials=secret
71                    searchbase="dc=example,dc=com"
72                    filter="(objectClass=*)"
73                    schemachecking=off
74                    scope=sub
75                    type=refreshAndPersist
76                    retry="3 5 300 5"
77
78database  ldap
79hidden              on
80suffix              "dc=example,dc=com"
81rootdn              "cn=Whoever"
82uri                 @URI3@
83
84acl-bind  bindmethod=simple
85                    binddn="cn=Monitor"
86                    credentials=monitor
87
88# Don't change syncrepl spec yet
89
90syncrepl  rid=2
91                    provider=@URI1@
92                    binddn="cn=Manager,dc=example,dc=com"
93                    bindmethod=simple
94                    credentials=secret
95                    searchbase="dc=example,dc=com"
96                    filter="(objectClass=*)"
97                    schemachecking=off
98                    scope=sub
99                    type=refreshOnly
100                    interval=00:00:00:03
101                    retry="3 5 300 5"
102
103database  monitor
104