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