1# slave 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-2011 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#monitormod#modulepath ../servers/slapd/back-monitor/ 28#monitormod#moduleload back_monitor.la 29#syncprovmod#modulepath ../servers/slapd/overlays/ 30#syncprovmod#moduleload syncprov.la 31#ldapmod#modulepath ../servers/slapd/back-ldap/ 32#ldapmod#moduleload back_ldap.la 33 34####################################################################### 35# master database definitions 36####################################################################### 37 38database @BACKEND@ 39suffix "dc=example,dc=com" 40rootdn "cn=Manager,dc=example,dc=com" 41rootpw secret 42#~null~#directory @TESTDIR@/db.1.a 43#indexdb#index objectClass eq 44#indexdb#index cn,sn,uid pres,eq,sub 45#indexdb#index entryUUID,entryCSN eq 46#ndb#dbname db_1 47#ndb#include @DATADIR@/ndb.conf 48 49overlay syncprov 50syncprov-sessionlog 100 51 52####################################################################### 53# consumer proxy database definitions 54####################################################################### 55 56database ldap 57hidden on 58suffix "dc=example,dc=com" 59rootdn "cn=Whoever" 60uri @URI2@ 61 62acl-bind bindmethod=simple 63 binddn="cn=Monitor" 64 credentials=monitor 65 66# Don't change syncrepl spec yet 67 68syncrepl rid=1 69 provider=@URI1@ 70 binddn="cn=Manager,dc=example,dc=com" 71 bindmethod=simple 72 credentials=secret 73 searchbase="dc=example,dc=com" 74 filter="(objectClass=*)" 75 schemachecking=off 76 scope=sub 77 type=refreshAndPersist 78 retry="3 5 300 5" 79 80database ldap 81hidden on 82suffix "dc=example,dc=com" 83rootdn "cn=Whoever" 84uri @URI3@ 85 86acl-bind bindmethod=simple 87 binddn="cn=Monitor" 88 credentials=monitor 89 90# Don't change syncrepl spec yet 91 92syncrepl rid=2 93 provider=@URI1@ 94 binddn="cn=Manager,dc=example,dc=com" 95 bindmethod=simple 96 credentials=secret 97 searchbase="dc=example,dc=com" 98 filter="(objectClass=*)" 99 schemachecking=off 100 scope=sub 101 type=refreshOnly 102 interval=00:00:00:03 103 retry="3 5 300 5" 104 105#monitor#database monitor 106