]> git.sur5r.net Git - openldap/blob - tests/data/slapd-whoami.conf
cc82bbcafbd2633388a83f0c18f001abe9abbcca
[openldap] / tests / data / slapd-whoami.conf
1 # master slapd config -- for testing
2 # $OpenLDAP: pkg/ldap/tests/data/slapd-pw.conf,v 1.19.2.4 2003/12/15 22:05:29 
3  kurt Exp $
4 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ##
6 ## Copyright 1998-2005 The OpenLDAP Foundation.
7 ## All rights reserved.
8 ##
9 ## Redistribution and use in source and binary forms, with or without
10 ## modification, are permitted only as authorized by the OpenLDAP
11 ## Public License.
12 ##
13 ## A copy of this license is available in the file LICENSE in the
14 ## top-level directory of the distribution or, alternatively, at
15 ## <http://www.OpenLDAP.org/license.html>.
16
17 include ./schema/core.schema
18 include ./schema/cosine.schema
19 include ./schema/inetorgperson.schema
20 include ./schema/openldap.schema
21 include ./schema/nis.schema
22 pidfile     ./testrun/slapd.1.pid
23 argsfile    ./testrun/slapd.1.args
24
25 #mod#modulepath ../servers/slapd/back-@BACKEND@/
26 #mod#moduleload back_@BACKEND@.la
27 #monitormod#modulepath ../servers/slapd/back-monitor/
28 #monitormod#moduleload back_monitor.la
29
30 #######################################################################
31 # database definitions
32 #######################################################################
33
34 authz-policy    both
35 authz-regexp    "^uid=group/([^,]+),.*" "ldap:///dc=example,dc=com??sub?cn=$1"
36 authz-regexp    "^uid=([^,]+),.*" "ldap:///dc=example,dc=com??sub?uid=$1"
37
38 #
39 # normal installations should protect root dse,
40 # cn=monitor, cn=schema, and cn=config
41 #
42
43 access to attr=authzFrom,authzTo
44         by * auth
45
46 access to attr=userpassword
47         by anonymous auth
48         by self write
49
50 access to *
51         by self write
52         by * read
53
54 database        @BACKEND@
55 #ldbm#cachesize 0
56 suffix          "dc=example,dc=com"
57 directory       ./testrun/db.1.a
58 rootdn          "cn=Manager,dc=example,dc=com"
59 rootpw          secret
60 index           objectClass     eq
61 index           cn,sn,uid       pres,eq,sub
62
63 #monitor#database monitor