]> git.sur5r.net Git - openldap/blob - tests/data/slapd-proxycache.conf
Rework test scripts to use single 'testrun' directory.
[openldap] / tests / data / slapd-proxycache.conf
1 #
2 # proxy cache slapd config 
3 #
4 ucdata-path     ./ucdata
5 include ./schema/core.schema
6 include ./schema/cosine.schema
7 include ./schema/inetorgperson.schema
8 include ./schema/openldap.schema
9 include ./schema/nis.schema
10
11 pidfile     ./testrun/slapd.2.pid
12 argsfile    ./testrun/slapd.2.args
13
14 access to * by write
15
16 #######################################################################
17 # database definitions
18 #######################################################################
19
20 database @BACKEND@
21
22 suffix "o=University of Michigan,c=US,cn=cache" 
23 cachesize 20
24 directory ./testrun/db.2.a
25 index           objectClass     eq
26 index           cn,sn,uid,mail  pres,eq,sub
27
28 database        meta
29 rewriteEngine on
30 rewriteContext cacheResult
31 rewriteRule "(.*)o=University of Michigan,c=US" "%1o=University of Michigan,c=US,cn=cache" ":"
32 rewriteContext cacheBase
33 rewriteRule "(.*)o=University of Michigan,c=US" "%1o=university of michigan,c=us,cn=cache" ":"
34 rewriteContext cacheReturn 
35 rewriteRule "(.*)o=University of Michigan,c=US,cn=cache" "%1o=University of Michigan,c=US" ":"
36  
37
38 suffix          "o=University of Michigan,c=US"
39 uri             ldap://127.0.0.1:9011/o=University%20of%20Michigan,c=US
40 cacheparams     10000 15000 2 @ENTRY_LIMIT@ @CACHETTL@
41
42 attrset 0       sn cn title uid
43 attrset 1       mail postaladdress telephonenumber cn uid
44 addtemplate     (|(cn=)(sn=)) 0 @CACHETTL@
45 addtemplate     (sn=) 0 @CACHETTL@
46 addtemplate     (uid=) 1 @CACHETTL@
47 addtemplate     (mail=) 0 @CACHETTL@
48         
49