| 1 |
# stand-alone slapd config -- for testing (with indexing) |
| 2 |
# $OpenLDAP$ |
| 3 |
## This work is part of OpenLDAP Software <http://www.openldap.org/>. |
| 4 |
## |
| 5 |
## Copyright 1998-2024 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 |
|
| 16 |
include @SCHEMADIR@/core.schema |
| 17 |
include @SCHEMADIR@/cosine.schema |
| 18 |
include @SCHEMADIR@/inetorgperson.schema |
| 19 |
include @SCHEMADIR@/openldap.schema |
| 20 |
include @SCHEMADIR@/nis.schema |
| 21 |
include @DATADIR@/test.schema |
| 22 |
|
| 23 |
# |
| 24 |
pidfile @TESTDIR@/slapd.MPR.pid |
| 25 |
argsfile @TESTDIR@/slapd.MPR.args |
| 26 |
|
| 27 |
serverid MPR |
| 28 |
#mod#modulepath ../servers/slapd/back-@BACKEND@/:../servers/slapd/overlays |
| 29 |
#mod#moduleload back_@[email protected] |
| 30 |
#syncprovmod#modulepath ../servers/slapd/overlays/ |
| 31 |
#syncprovmod#moduleload syncprov.la |
| 32 |
#accesslogmod#modulepath ../servers/slapd/overlays/ |
| 33 |
#accesslogmod#moduleload accesslog.la |
| 34 |
|
| 35 |
database config |
| 36 |
rootpw config |
| 37 |
|
| 38 |
database @BACKEND@ |
| 39 |
suffix "dc=example,dc=com" |
| 40 |
rootdn "cn=Manager,dc=example,dc=com" |
| 41 |
rootpw secret |
| 42 |
#~null~#directory @TESTDIR@/srvMPR/db.1 |
| 43 |
#indexdb#index objectClass eq |
| 44 |
#indexdb#index cn,sn,uid pres,eq,sub |
| 45 |
|
| 46 |
syncrepl |
| 47 |
rid=001 |
| 48 |
provider=MMC1 |
| 49 |
bindmethod=simple |
| 50 |
binddn="cn=Manager,dc=example,dc=com" |
| 51 |
credentials=secret |
| 52 |
type=refreshAndPersist |
| 53 |
searchbase="dc=example,dc=com" |
| 54 |
filter="(objectclass=*)" |
| 55 |
scope=sub |
| 56 |
schemachecking=on |
| 57 |
retry="5 10 60 +" |
| 58 |
logbase="cn=log" |
| 59 |
logfilter="(&(objectClass=auditWriteObject)(reqResult=0))" |
| 60 |
syncdata=accesslog |
| 61 |
sizeLimit=unlimited |
| 62 |
timelimit=unlimited |
| 63 |
|
| 64 |
syncrepl |
| 65 |
rid=002 |
| 66 |
provider=MMC2 |
| 67 |
bindmethod=simple |
| 68 |
binddn="cn=Manager,dc=example,dc=com" |
| 69 |
credentials=secret |
| 70 |
type=refreshAndPersist |
| 71 |
searchbase="dc=example,dc=com" |
| 72 |
filter="(objectclass=*)" |
| 73 |
scope=sub |
| 74 |
schemachecking=on |
| 75 |
retry="5 10 60 +" |
| 76 |
logbase="cn=log" |
| 77 |
logfilter="(&(objectClass=auditWriteObject)(reqResult=0))" |
| 78 |
syncdata=accesslog |
| 79 |
sizeLimit=unlimited |
| 80 |
timelimit=unlimited |
| 81 |
|
| 82 |
syncrepl |
| 83 |
rid=003 |
| 84 |
provider=MMC3 |
| 85 |
bindmethod=simple |
| 86 |
binddn="cn=Manager,dc=example,dc=com" |
| 87 |
credentials=secret |
| 88 |
type=refreshAndPersist |
| 89 |
searchbase="dc=example,dc=com" |
| 90 |
filter="(objectclass=*)" |
| 91 |
scope=sub |
| 92 |
schemachecking=on |
| 93 |
retry="5 10 60 +" |
| 94 |
logbase="cn=log" |
| 95 |
logfilter="(&(objectClass=auditWriteObject)(reqResult=0))" |
| 96 |
syncdata=accesslog |
| 97 |
sizeLimit=unlimited |
| 98 |
timelimit=unlimited |
| 99 |
|
| 100 |
syncrepl |
| 101 |
rid=004 |
| 102 |
provider=MMC4 |
| 103 |
bindmethod=simple |
| 104 |
binddn="cn=Manager,dc=example,dc=com" |
| 105 |
credentials=secret |
| 106 |
type=refreshAndPersist |
| 107 |
searchbase="dc=example,dc=com" |
| 108 |
filter="(objectclass=*)" |
| 109 |
scope=sub |
| 110 |
schemachecking=on |
| 111 |
retry="5 10 60 +" |
| 112 |
logbase="cn=log" |
| 113 |
logfilter="(&(objectClass=auditWriteObject)(reqResult=0))" |
| 114 |
syncdata=accesslog |
| 115 |
sizeLimit=unlimited |
| 116 |
timelimit=unlimited |
| 117 |
|
| 118 |
multiprovider TRUE |
| 119 |
|
| 120 |
overlay syncprov |
| 121 |
syncprov-sessionlog 100 |
| 122 |
syncprov-checkpoint 100 10 |
| 123 |
|
| 124 |
overlay accesslog |
| 125 |
logdb cn=log |
| 126 |
logops writes |
| 127 |
logsuccess TRUE |
| 128 |
logpurge 24:00 01+00:00 |
| 129 |
|
| 130 |
database @BACKEND@ |
| 131 |
suffix "cn=log" |
| 132 |
rootdn "cn=Manager,dc=example,dc=com" |
| 133 |
#~null~#directory @TESTDIR@/srvMPR/db.2 |
| 134 |
#indexdb#index objectClass eq |
| 135 |
#indexdb#index entryCSN,entryUUID,reqEnd,reqResult,reqStart eq |
| 136 |
#mdb#maxsize @MAPSIZE@ |
| 137 |
|
| 138 |
overlay syncprov |
| 139 |
syncprov-reloadhint true |
| 140 |
syncprov-nopresent true |
| 141 |
|
| 142 |
database monitor |