]> git.sur5r.net Git - openldap/blob - tests/data/slapd-idassert.conf
allow back-ldap as module... (ITS#3194)
[openldap] / tests / data / slapd-idassert.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-2003 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 #ucdata-path    ./ucdata
18 include ./schema/core.schema
19 include ./schema/cosine.schema
20 include ./schema/inetorgperson.schema
21 include ./schema/openldap.schema
22 include ./schema/nis.schema
23 pidfile     ./testrun/slapd.1.pid
24 argsfile    ./testrun/slapd.1.args
25
26 #mod#modulepath ../servers/slapd/back-@BACKEND@/
27 #mod#moduleload back_@BACKEND@.la
28 #ldapmod#moduleload ../servers/slapd/back-ldap/back_ldap.la
29
30 #######################################################################
31 # ldbm database definitions
32 #######################################################################
33
34 authz-policy    both
35 authz-regexp    "^uid=admin/([^,]+),.*" "ldap:///ou=Admin,dc=example,dc=com??sub?cn=$1"
36 authz-regexp    "^uid=it/([^,]+),.*" "ldap:///ou=People,dc=example,dc=it??sub?uid=$1"
37 authz-regexp    "^uid=(us/)*([^,]+),.*" "ldap:///ou=People,dc=example,dc=com??sub?uid=$2"
38
39 #
40 # normal installations should protect root dse,
41 # cn=monitor, cn=schema, and cn=config
42 #
43
44 access to attr=userpassword
45         by self =wx
46         by anonymous =x
47
48 access to dn.exact=""
49         by * read
50
51 access to *
52         by users read
53         by * search
54
55 database        @BACKEND@
56 #ldbm#cachesize 0
57 suffix          "dc=example,dc=com"
58 directory       ./testrun/db.1.a
59 rootdn          "cn=Manager,dc=example,dc=com"
60 rootpw          secret
61 index           objectClass     eq
62 index           cn,sn,uid       pres,eq,sub
63
64 access to dn.exact="cn=Proxy,ou=Admin,dc=example,dc=com"
65                 attr=authzTo
66         by dn.exact="cn=Proxy,ou=Admin,dc=example,dc=com" =wx
67         by * =x
68
69 database        @BACKEND@
70 #ldbm#cachesize 0
71 suffix          "dc=example,dc=it"
72 directory       ./testrun/db.2.a
73 rootdn          "cn=Manager,dc=example,dc=it"
74 rootpw          secret
75 index           objectClass     eq
76 index           cn,sn,uid       pres,eq,sub
77
78 database        ldap
79 suffix          "o=Example,c=US"
80 suffixmassage   "o=Example,c=US" "dc=example,dc=com"
81 uri             "@URI1@"
82
83 #sasl#idassert-method "sasl" "authcDN=cn=Proxy US,ou=Admin,dc=example,dc=com" "authcID=admin/proxy US" "cred=proxy" @SASL_MECH@
84 #nosasl#idassert-method "simple"
85 #nosasl#idassert-authcDN        "cn=Proxy US,ou=Admin,dc=example,dc=com"
86 #nosasl#idassert-passwd         proxy
87 idassert-mode   self
88
89 # authorizes database
90 idassert-authzFrom      "dn.subtree:dc=example,dc=it"
91
92 database        ldap
93 suffix          "o=Esempio,c=IT"
94 suffixmassage   "o=Esempio,c=IT" "dc=example,dc=com"
95 uri             "@URI1@"
96
97 acl-authcDN     "cn=Proxy IT,ou=Admin,dc=example,dc=com"
98 acl-passwd      proxy
99
100 idassert-method "simple"
101 idassert-authcDN        "cn=Proxy IT,ou=Admin,dc=example,dc=com"
102 idassert-passwd         proxy
103 idassert-mode   "dn:cn=Sandbox,ou=Admin,dc=example,dc=com"
104
105 # authorizes database
106 idassert-authzFrom      "dn.subtree:dc=example,dc=com"
107 # authorizes anonymous
108 idassert-authzFrom      "dn.exact:"
109
110 access to attrs=entry,cn,sn,mail
111         by users read
112
113 access to *
114         by dn.exact="cn=Proxy IT,ou=Admin,o=Esempio,c=IT" read
115         by group.exact="cn=Authorizable,ou=Groups,o=Esempio,c=IT" read
116         by dn.exact="cn=Sandbox,ou=Admin,dc=example,dc=com" search
117         by * none
118
119