]> git.sur5r.net Git - openldap/blob - tests/data/slapd-idassert.conf
silence warning
[openldap] / tests / data / slapd-idassert.conf
1 # master slapd config -- for testing
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2009 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
17 include         @SCHEMADIR@/core.schema
18 include         @SCHEMADIR@/cosine.schema
19 include         @SCHEMADIR@/inetorgperson.schema
20 include         @SCHEMADIR@/openldap.schema
21 include         @SCHEMADIR@/nis.schema
22 pidfile         @TESTDIR@/slapd.1.pid
23 argsfile        @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 #rwmmod#modulepath ../servers/slapd/overlays/
32 #rwmmod#moduleload rwm.la
33
34 #######################################################################
35 # database definitions
36 #######################################################################
37
38 authz-policy    both
39 authz-regexp    "^uid=admin/([^,]+),.+" "ldap:///ou=Admin,dc=example,dc=com??sub?(cn=$1)"
40 authz-regexp    "^uid=it/([^,]+),.+" "ldap:///ou=People,dc=example,dc=it??sub?(uid=$1)"
41 authz-regexp    "^uid=(us/)?([^,]+),.+" "ldap:///ou=People,dc=example,dc=com??sub?(uid=$2)"
42
43 #
44 # normal installations should protect root dse,
45 # cn=monitor, cn=schema, and cn=config
46 #
47
48 access to attrs=userpassword
49         by self =wx
50         by anonymous =x
51
52 access to dn.exact=""
53         by * read
54
55 access to *
56         by users read
57         by * search
58
59 database        @BACKEND@
60
61 suffix          "dc=example,dc=com"
62 directory       @TESTDIR@/db.1.a
63 rootdn          "cn=Manager,dc=example,dc=com"
64 rootpw          secret
65 #bdb#index              objectClass     eq
66 #bdb#index              cn,sn,uid       pres,eq,sub
67 #hdb#index              objectClass     eq
68 #hdb#index              cn,sn,uid       pres,eq,sub
69 #ndb#dbname db_1
70 #ndb#include @DATADIR@/ndb.conf
71
72 access to dn.exact="cn=Proxy,ou=Admin,dc=example,dc=com"
73                 attrs=authzTo
74         by dn.exact="cn=Proxy,ou=Admin,dc=example,dc=com" =wx
75         by * =x
76
77 database        @BACKEND@
78
79 suffix          "dc=example,dc=it"
80 directory       @TESTDIR@/db.2.a
81 rootdn          "cn=Manager,dc=example,dc=it"
82 rootpw          secret
83 #bdb#index              objectClass     eq
84 #bdb#index              cn,sn,uid       pres,eq,sub
85 #hdb#index              objectClass     eq
86 #hdb#index              cn,sn,uid       pres,eq,sub
87 #ndb#dbname db_2
88 #ndb#include @DATADIR@/ndb.conf
89
90 database        ldap
91 suffix          "o=Example,c=US"
92 uri             "@URI1@"
93
94 #sasl#idassert-bind     bindmethod=sasl binddn="cn=Proxy US,ou=Admin,dc=example,dc=com" authcId="admin/proxy US" credentials="proxy" @SASL_MECH@ mode=self
95 #nosasl#idassert-bind   bindmethod=simple binddn="cn=Proxy US,ou=Admin,dc=example,dc=com" credentials="proxy" mode=self
96
97 # authorizes database
98 idassert-authzFrom      "dn.subtree:dc=example,dc=it"
99
100 overlay         rwm
101 rwm-suffixmassage       "dc=example,dc=com"
102
103 database        ldap
104 suffix          "o=Esempio,c=IT"
105 uri             "@URI1@"
106
107 acl-authcDN     "cn=Proxy IT,ou=Admin,dc=example,dc=com"
108 acl-passwd      proxy
109
110 idassert-bind   bindmethod=simple binddn="cn=Proxy IT,ou=Admin,dc=example,dc=com" credentials="proxy" authzId="dn:cn=Sandbox,ou=Admin,dc=example,dc=com"
111
112 # authorizes database
113 idassert-authzFrom      "dn.subtree:dc=example,dc=com"
114 # authorizes anonymous
115 idassert-authzFrom      "dn.exact:"
116
117 overlay         rwm
118 rwm-suffixmassage       "dc=example,dc=com"
119
120 access to attrs=entry,cn,sn,mail
121         by users read
122
123 access to *
124         by dn.exact="cn=Proxy IT,ou=Admin,o=Esempio,c=IT" read
125         by group.exact="cn=Authorizable,ou=Groups,o=Esempio,c=IT" read
126         by dn.exact="cn=Sandbox,ou=Admin,dc=example,dc=com" search
127         by * none
128
129 #monitor#database       monitor
130 #monitor#rootdn         "cn=monitor"
131 #monitor#rootpw         monitor