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