xref: /netbsd-src/external/bsd/openldap/dist/tests/data/slapd-ldapglue.conf (revision ca453df649ce9db45b64d73678ba06cbccf9aa11)
1# master slapd config -- for testing
2# OpenLDAP: pkg/ldap/tests/data/slapd-ldapglue.conf,v 1.12.2.9 2010/04/19 19:14:28 quanah Exp
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2010 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#ucdata-path	./ucdata
17include		@SCHEMADIR@/core.schema
18include		@SCHEMADIR@/cosine.schema
19include		@SCHEMADIR@/inetorgperson.schema
20include		@SCHEMADIR@/openldap.schema
21include		@SCHEMADIR@/nis.schema
22pidfile		@TESTDIR@/slapd.1.pid
23argsfile	@TESTDIR@/slapd.1.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#monitormod#modulepath ../servers/slapd/back-monitor/
30#monitormod#moduleload back_monitor.la
31
32#######################################################################
33# database definitions
34#######################################################################
35
36authz-regexp	"^uid=([^,]+),.*" "uid=$1,ou=People,dc=example,dc=com"
37
38#
39# normal installations should protect root dse,
40# cn=monitor, cn=schema, and cn=config
41#
42
43access to attrs=userpassword
44	by self =wx
45	by anonymous =x
46
47access to *
48	by * read
49
50# groups branch
51database        ldap
52suffix          "ou=Groups,dc=example,dc=com"
53subordinate
54uri             "@URI3@"
55# FIXME: doesn't work with authz=native
56#sasl#idassert-bind	bindmethod=sasl authcid=proxy credentials=proxy @SASL_MECH@ mode=self
57#nosasl#idassert-bind	bindmethod=simple binddn="uid=proxy,ou=Groups,dc=example,dc=com" credentials=proxy mode=self
58
59# people branch
60database        ldap
61suffix          "ou=People,dc=example,dc=com"
62subordinate
63uri             "@URI2@"
64# FIXME: doesn't work with authz=native
65#sasl#idassert-bind	bindmethod=sasl authcid=proxy credentials=proxy @SASL_MECH@ mode=self
66#nosasl#idassert-bind	bindmethod=simple binddn="uid=proxy,ou=People,dc=example,dc=com" credentials=proxy mode=self
67
68# root
69database        @BACKEND@
70suffix          "dc=example,dc=com"
71rootdn		"cn=Manager,dc=example,dc=com"
72rootpw		secret
73#~null~#directory	@TESTDIR@/db.1.a
74#bdb#index		objectClass	eq
75#bdb#index		cn,sn,uid	pres,eq,sub
76#hdb#index		objectClass	eq
77#hdb#index		cn,sn,uid	pres,eq,sub
78#ndb#dbname db_1
79#ndb#include @DATADIR@/ndb.conf
80
81#monitor#database	monitor
82