]> git.sur5r.net Git - openldap/blob - tests/data/slapd-proxycache.conf
Merge remote-tracking branch 'origin/mdb.master'
[openldap] / tests / data / slapd-proxycache.conf
1 # proxy cache slapd config 
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2014 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
22 pidfile         @TESTDIR@/slapd.2.pid
23 argsfile        @TESTDIR@/slapd.2.args
24
25 #mod#modulepath ../servers/slapd/back-@BACKEND@/
26 #mod#moduleload back_@BACKEND@.la
27 #ldapmod#modulepath     ../servers/slapd/back-ldap/
28 #ldapmod#moduleload     back_ldap.la
29 #monitormod#modulepath ../servers/slapd/back-monitor/
30 #monitormod#moduleload back_monitor.la
31 #pcachemod#modulepath ../servers/slapd/overlays/
32 #pcachemod#moduleload pcache.la
33
34 #######################################################################
35 # database definitions
36 #######################################################################
37
38 database        ldap
39 suffix          "dc=example,dc=com"
40 rootdn          "dc=example,dc=com"
41 rootpw          "secret"
42 uri             "@URI1@"
43
44 limits          dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" size=1
45
46 overlay         pcache
47 pcache  @BACKEND@ 100 2 @ENTRY_LIMIT@ @CCPERIOD@
48 pcacheattrset 0         sn cn title uid
49 pcacheattrset 1         mail postaladdress telephonenumber cn uid
50 pcachetemplate          (|(cn=)(sn=)) 0 @TTL@ @NTTL@ @STTL@
51 pcachetemplate          (sn=) 0 @TTL@ @NTTL@ @STTL@
52 pcachetemplate          (uid=) 1 @TTL@ @NTTL@ @STTL@
53 pcachetemplate          (mail=) 0 @TTL@ @NTTL@ @STTL@
54 pcachetemplate          (&(objectclass=)(uid=)) 1 @TTL@ @NTTL@ @STTL@ @TTR@
55 pcachebind              (&(objectclass=person)(uid=)) 1 @BTTR@ sub "ou=Alumni Association,ou=people,dc=example,dc=com"
56
57 #bdb#cachesize 20
58 #hdb#cachesize 20
59
60 #~null~#directory       @TESTDIR@/db.2.a
61 #indexdb#index          objectClass     eq
62 #indexdb#index          cn,sn,uid,mail  pres,eq,sub
63 #ndb#dbname db_2
64 #ndb#include @DATADIR@/ndb.conf
65
66 #monitor#database       monitor