]> git.sur5r.net Git - openldap/blob - tests/data/slapd-sql.conf
997672f10d82b428e94c4f5a877b09106249841f
[openldap] / tests / data / slapd-sql.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-2003 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 ./schema/core.schema
18 include ./schema/cosine.schema
19 include ./schema/inetorgperson.schema
20 include ./schema/openldap.schema
21 include ./schema/nis.schema
22 pidfile     ./testrun/slapd.1.pid
23 argsfile    ./testrun/slapd.1.args
24
25 #mod#modulepath ../servers/slapd/back-@BACKEND@/
26 #mod#moduleload back_@BACKEND@.la
27 #sqlmod#modulepath ../servers/slapd/back-sql/
28 #sqlmod#moduleload back_sql.la
29 #monitormod#modulepath ../servers/slapd/back-monitor/
30 #monitormod#moduleload back_monitor.la
31
32 #
33 # normal installations should protect root dse,
34 # cn=monitor, cn=schema, and cn=config
35 #
36
37 access to attr=userpassword
38         by self =wx
39         by anonymous =x
40
41 access to *
42         by * read
43
44 #######################################################################
45 # sql database definitions
46 #######################################################################
47
48 database        sql
49 suffix          "o=Example,c=RU"
50 rootdn          "cn=Manager,o=Example,c=RU"
51 rootpw          secret
52 dbname          example
53 dbuser          manager
54 dbpasswd        secret
55
56 #insentry_query  "insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values ((select max(id)+1 from ldap_entries),?,?,?,?)"
57 #
58 # rdbms specific directives
59 #
60 # PostgreSQL
61 #postgres#upper_func      "upper"
62 #postgres#strcast_func    "text"
63 #postgres#concat_pattern  "?||?"
64 #
65 # MySQL
66 #mysql#concat_pattern  "concat(?,?)"
67
68 has_ldapinfo_dn_ru      no
69
70 #monitor#database monitor