1
# master slapd config -- for testing
2
# $OpenLDAP: pkg/ldap/tests/data/slapd-sql.conf,v 1.15.2.3 2008/02/11 23:26:50 kurt Exp $
3
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5
## Copyright 1998-2008 The OpenLDAP Foundation.
6
## All rights reserved.
8
## Redistribution and use in source and binary forms, with or without
9
## modification, are permitted only as authorized by the OpenLDAP
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>.
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
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
31
# normal installations should protect root dse,
32
# cn=monitor, cn=schema, and cn=config
35
access to attrs=userpassword
42
#######################################################################
43
# sql database definitions
44
#######################################################################
47
suffix "dc=example,dc=com"
48
rootdn "cn=Manager,dc=example,dc=com"
55
# rdbms specific directives
58
#ibmdb2#upper_func "ucase"
59
#ibmdb2#upper_needs_cast "yes"
60
#ibmdb2#concat_pattern "?||?"
61
#ibmdb2#children_cond "ucase(ldap_entries.dn)=ucase(cast(? as varchar(255)))"
62
#ibmdb2#create_needs_select "yes"
63
#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
#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),?,?,?,?)"
67
#pgsql#upper_func "upper"
68
#pgsql#strcast_func "text"
69
#pgsql#concat_pattern "?||?"
72
#mysql#concat_pattern "concat(?,?)"
76
#monitor#database monitor