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-2024 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 #pcachemod#modulepath ../servers/slapd/overlays/ 30 #pcachemod#moduleload pcache.la 31 32 33 ####################################################################### 34 # database definitions 35 ####################################################################### 36 37 database ldap 38 suffix "dc=example,dc=com" 39 rootdn "dc=example,dc=com" 40 rootpw "secret" 41 uri "@URI1@" 42 43 limits dn="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" size=1 44 45 idassert-bind bindmethod=simple binddn="cn=Manager,dc=example,dc=com" credentials="secret" 46 mode=self authz=proxyauthz flags="override" 47 48 idassert-authzFrom "dn.children:dc=example,dc=com" 49 50 #authz=proxyauthz 51 52 overlay pcache 53 pcache @BACKEND@ 100 2 @ENTRY_LIMIT@ @CCPERIOD@ 54 pcacheattrset 0 sn cn title uid 55 pcacheattrset 1 mail postaladdress telephonenumber cn uid 56 pcachetemplate (|(cn=)(sn=)) 0 @TTL@ @NTTL@ @STTL@ 57 pcachetemplate (sn=) 0 @TTL@ @NTTL@ @STTL@ 58 pcachetemplate (uid=) 1 @TTL@ @NTTL@ @STTL@ 59 pcachetemplate (mail=) 0 @TTL@ @NTTL@ @STTL@ 60 pcachetemplate (&(objectclass=)(uid=)) 1 @TTL@ @NTTL@ @STTL@ @TTR@ 61 pcachetemplate (cn=) 0 86400 86400 86400 180 62 63 pcachebind (cn=) 0 3600 sub ou=people,dc=example,dc=com 64 65 #mdb#dbnosync 66 67 #~null~#directory @TESTDIR@/db.2.a 68 #indexdb#index objectClass eq 69 #indexdb#index cn,sn,uid,mail pres,eq,sub 70 71 database monitor 72