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