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
4 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
6 ## Copyright 1998-2003 The OpenLDAP Foundation.
7 ## All rights reserved.
9 ## Redistribution and use in source and binary forms, with or without
10 ## modification, are permitted only as authorized by the OpenLDAP
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>.
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
28 #mod#modulepath ../servers/slapd/back-@BACKEND@/
29 #mod#moduleload back_@BACKEND@.la
31 #######################################################################
32 # ldbm database definitions
33 #######################################################################
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"
41 # normal installations should protect root dse,
42 # cn=monitor, cn=schema, and cn=config
45 access to attr=userpassword
58 suffix "dc=example,dc=com"
59 directory ./testrun/db.1.a
60 rootdn "cn=Manager,dc=example,dc=com"
63 index cn,sn,uid pres,eq,sub
65 access to dn.exact="cn=Proxy,ou=Admin,dc=example,dc=com"
67 by dn.exact="cn=Proxy,ou=Admin,dc=example,dc=com" =wx
72 suffix "dc=example,dc=it"
73 directory ./testrun/db.2.a
74 rootdn "cn=Manager,dc=example,dc=it"
77 index cn,sn,uid pres,eq,sub
80 suffix "o=Example,c=US"
81 suffixmassage "o=Example,c=US" "dc=example,dc=com"
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
91 idassert-authzFrom "dn.subtree:dc=example,dc=it"
94 suffix "o=Esempio,c=IT"
95 suffixmassage "o=Esempio,c=IT" "dc=example,dc=com"
98 acl-authcDN "cn=Proxy IT,ou=Admin,dc=example,dc=com"
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"
106 # authorizes database
107 idassert-authzFrom "dn.subtree:dc=example,dc=com"
108 # authorizes anonymous
109 idassert-authzFrom "dn.exact:"
111 access to attrs=entry,cn,sn,mail
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