]> git.sur5r.net Git - openldap/blob - tests/data/slapd-proxycache.conf
Proxy cache updates (with a test suite)
[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
10 pidfile     ./test-cache/slapd.pid
11 argsfile    ./test-cache/slapd.args
12
13 access to * by write
14
15 #######################################################################
16 # ldbm database definitions
17 #######################################################################
18
19 database ldbm
20
21 suffix "o=University of Michigan,c=US,cn=cache" 
22 cachesize 20
23 directory ./test-cache
24 index           objectClass     eq
25 index           cn,sn,uid,mail  pres,eq,sub
26
27 database        meta
28 rewriteEngine on
29 rewriteContext cacheResult
30 rewriteRule "(.*)o=University of Michigan,c=US" "%1o=University of Michigan,c=US,cn=cache" ":"
31 rewriteContext cacheBase
32 rewriteRule "(.*)o=University of Michigan,c=US" "%1o=university of michigan,c=us,cn=cache" ":"
33 rewriteContext cacheReturn 
34 rewriteRule "(.*)o=University of Michigan,c=US,cn=cache" "%1o=University of Michigan,c=US" ":"
35  
36
37 suffix          "o=University of Michigan,c=US"
38 uri             ldap://127.0.0.1:9009/o=University%20of%20Michigan,c=US
39 cacheparams     10000 15000 2 @ENTRY_LIMIT@ @CACHETTL@
40
41 attrset 0       sn cn title
42 attrset 1       mail postaladdress telephonenumber
43 addtemplate     (|(cn=)(sn=)) 0 @CACHETTL@
44 addtemplate     (sn=) 0 @CACHETTL@
45 addtemplate     (uid=) 1 @CACHETTL@
46 addtemplate     (mail=) 0 @CACHETTL@
47         
48