slapd-proxycache.conf revision 1.1.1.9
1# proxy cache slapd config -- for testing 2# $OpenLDAP$ 3## This work is part of OpenLDAP Software <http://www.openldap.org/>. 4## 5## Copyright 1998-2021 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.2.pid 23argsfile @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#pcachemod#modulepath ../servers/slapd/overlays/ 30#pcachemod#moduleload pcache.la 31 32####################################################################### 33# database definitions 34####################################################################### 35 36database ldap 37suffix "dc=example,dc=com" 38rootdn "dc=example,dc=com" 39rootpw "secret" 40uri "@URI1@" 41 42limits dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" size=1 43 44overlay pcache 45pcache @BACKEND@ 100 2 @ENTRY_LIMIT@ @CCPERIOD@ 46pcacheattrset 0 sn cn title uid 47pcacheattrset 1 mail postaladdress telephonenumber cn uid 48pcachetemplate (|(cn=)(sn=)) 0 @TTL@ @NTTL@ @STTL@ 49pcachetemplate (sn=) 0 @TTL@ @NTTL@ @STTL@ 50pcachetemplate (uid=) 1 @TTL@ @NTTL@ @STTL@ 51pcachetemplate (mail=) 0 @TTL@ @NTTL@ @STTL@ 52pcachetemplate (&(objectclass=)(uid=)) 1 @TTL@ @NTTL@ @STTL@ @TTR@ 53pcachebind (&(objectclass=person)(uid=)) 1 @BTTR@ sub "ou=Alumni Association,ou=people,dc=example,dc=com" 54 55#mdb#dbnosync 56 57#~null~#directory @TESTDIR@/db.2.a 58#indexdb#index objectClass eq 59#indexdb#index cn,sn,uid,mail pres,eq,sub 60#ndb#dbname db_2 61#ndb#include @DATADIR@/ndb.conf 62 63database monitor 64