]> git.sur5r.net Git - openldap/blob - tests/data/slapd-proxycache.conf
7392f3e356e7fe9dcc092a9e1340225553a55f91
[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 modulepath      ../servers/slapd/back-@BACKEND@/
17 @MODULELOAD@
18
19 #######################################################################
20 # database definitions
21 #######################################################################
22
23 database @BACKEND@
24
25 suffix "o=University of Michigan,c=US,cn=cache" 
26 cachesize 20
27 directory ./testrun/db.2.a
28 index           objectClass     eq
29 index           cn,sn,uid,mail  pres,eq,sub
30
31 database        meta
32 rewriteEngine on
33 rewriteContext cacheResult
34 rewriteRule "(.*)o=University of Michigan,c=US" "%1o=University of Michigan,c=US,cn=cache" ":"
35 rewriteContext cacheBase
36 rewriteRule "(.*)o=University of Michigan,c=US" "%1o=university of michigan,c=us,cn=cache" ":"
37 rewriteContext cacheReturn 
38 rewriteRule "(.*)o=University of Michigan,c=US,cn=cache" "%1o=University of Michigan,c=US" ":"
39  
40
41 suffix          "o=University of Michigan,c=US"
42 uri             ldap://127.0.0.1:9011/o=University%20of%20Michigan,c=US
43 cacheparams     10000 15000 2 @ENTRY_LIMIT@ @CACHETTL@
44
45 attrset 0       sn cn title uid
46 attrset 1       mail postaladdress telephonenumber cn uid
47 addtemplate     (|(cn=)(sn=)) 0 @CACHETTL@
48 addtemplate     (sn=) 0 @CACHETTL@
49 addtemplate     (uid=) 1 @CACHETTL@
50 addtemplate     (mail=) 0 @CACHETTL@
51         
52