1# provider 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 21pidfile @TESTDIR@/slapd.1.pid 22argsfile @TESTDIR@/slapd.1.args 23 24# global ACLs 25# 26# normal installations should protect root dse, cn=monitor, cn=subschema 27# 28 29access to dn.exact="" attrs=objectClass 30 by users read 31access to * 32 by * read 33 34#mod#modulepath ../servers/slapd/back-@BACKEND@/ 35#mod#moduleload back_@BACKEND@.la 36 37####################################################################### 38# database definitions 39####################################################################### 40 41database @BACKEND@ 42 43suffix "dc=example,dc=com" 44rootdn "cn=Manager,dc=example,dc=com" 45rootpw secret 46#null#bind on 47#~null~#directory @TESTDIR@/db.1.a 48#indexdb#index objectClass eq 49#indexdb#index cn,sn,uid pres,eq,sub 50#ndb#dbname db_1 51#ndb#include @DATADIR@/ndb.conf 52 53access to attrs=userPassword 54 by anonymous auth 55 by * none stop 56 57access to attrs=sn val.regex="^(.*)$" 58 by dn.exact,expand="cn=${v1},ou=Alumni Association,ou=People,dc=example,dc=com" write 59 by * read stop 60 61access to attrs=sn val.regex="." 62 by * read stop 63 64access to attrs=sn 65 by dn.exact="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com" write 66 by * read stop 67 68# fall into global ACLs 69 70database monitor 71