slapd-whoami.conf 1.92 KB
Newer Older
1
2
3
4
5
# master slapd config -- for testing
# $OpenLDAP: pkg/ldap/tests/data/slapd-pw.conf,v 1.19.2.4 2003/12/15 22:05:29 
 kurt Exp $
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
Kurt Zeilenga's avatar
Kurt Zeilenga committed
6
## Copyright 1998-2006 The OpenLDAP Foundation.
7
8
9
10
11
12
13
14
15
16
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.

Kurt Zeilenga's avatar
Kurt Zeilenga committed
17
18
19
20
21
22
23
include		@SCHEMADIR@/core.schema
include		@SCHEMADIR@/cosine.schema
include		@SCHEMADIR@/inetorgperson.schema
include		@SCHEMADIR@/openldap.schema
include		@SCHEMADIR@/nis.schema
pidfile		@TESTDIR@/slapd.1.pid
argsfile	@TESTDIR@/slapd.1.args
24
25
26

#mod#modulepath	../servers/slapd/back-@BACKEND@/
#mod#moduleload	back_@BACKEND@.la
27
28
#monitormod#modulepath ../servers/slapd/back-monitor/
#monitormod#moduleload back_monitor.la
29
30

#######################################################################
31
# database definitions
32
33
34
35
36
37
38
39
40
41
42
#######################################################################

authz-policy	both
authz-regexp	"^uid=group/([^,]+),.*" "ldap:///dc=example,dc=com??sub?cn=$1"
authz-regexp	"^uid=([^,]+),.*" "ldap:///dc=example,dc=com??sub?uid=$1"

#
# normal installations should protect root dse,
# cn=monitor, cn=schema, and cn=config
#

43
access to attrs=authzFrom,authzTo
44
45
	by * auth

46
access to attrs=userpassword
47
48
49
50
51
52
53
54
55
56
	by anonymous auth
	by self write

access to *
	by self write
	by * read

database	@BACKEND@
#ldbm#cachesize	0
suffix		"dc=example,dc=com"
Kurt Zeilenga's avatar
Kurt Zeilenga committed
57
directory	@TESTDIR@/db.1.a
58
59
rootdn		"cn=Manager,dc=example,dc=com"
rootpw		secret
60
61
62
63
64
65
#bdb#index		objectClass	eq
#bdb#index		cn,sn,uid	pres,eq,sub
#hdb#index		objectClass	eq
#hdb#index		cn,sn,uid	pres,eq,sub
#ldbm#index		objectClass	eq
#ldbm#index		cn,sn,uid	pres,eq,sub
66

Kurt Zeilenga's avatar
Kurt Zeilenga committed
67
#monitor#database	monitor