]> git.sur5r.net Git - openldap/blob - tests/data/slapd-sql-syncrepl-master.conf
4952f7d10ff5698b849a7ba94c4ac08df676db9c
[openldap] / tests / data / slapd-sql-syncrepl-master.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-2007 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         @SCHEMADIR@/core.schema
18 include         @SCHEMADIR@/cosine.schema
19 include         @SCHEMADIR@/inetorgperson.schema
20 include         @SCHEMADIR@/openldap.schema
21 include         @SCHEMADIR@/nis.schema
22 pidfile         @TESTDIR@/slapd.1.pid
23 argsfile        @TESTDIR@/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 #syncprovmod#modulepath ../servers/slapd/overlays/
30 #syncprovmod#moduleload syncprov.la
31
32 #
33 # normal installations should protect root dse,
34 # cn=monitor, cn=schema, and cn=config
35 #
36
37 access to attrs=userpassword
38         by self =w
39         by anonymous =x
40
41 access to *
42         by * read
43
44 #######################################################################
45 # sql database definitions
46 #######################################################################
47
48 database        sql
49 suffix          "dc=example,dc=com"
50 rootdn          "cn=Manager,dc=example,dc=com"
51 rootpw          secret
52 dbname          example
53 dbuser          manager
54 dbpasswd        secret
55
56 #
57 # rdbms specific directives
58 #
59 # IBM db2
60 #ibmdb2#upper_func              "ucase"
61 #ibmdb2#upper_needs_cast        "yes"
62 #ibmdb2#concat_pattern          "?||?"
63 #ibmdb2#children_cond           "ucase(ldap_entries.dn)=ucase(cast(? as varchar(255)))"
64 #ibmdb2#create_needs_select     "yes"
65 #ibmdb2#insentry_stmt           "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),?,?,?,?)"
66 #
67 # PostgreSQL
68 #pgsql#insentry_stmt            "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),?,?,?,?)"
69 #pgsql#upper_func               "upper"
70 #pgsql#strcast_func             "text"
71 #pgsql#concat_pattern   "?||?"
72 #
73 # MySQL
74 #mysql#concat_pattern   "concat(?,?)"
75
76 has_ldapinfo_dn_ru      no
77
78 overlay                 syncprov
79
80 #monitor#database monitor