]> git.sur5r.net Git - openldap/commitdiff
added back-sql test under conditions; needs a README...
authorPierangelo Masarati <ando@openldap.org>
Fri, 20 Aug 2004 12:44:32 +0000 (12:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 20 Aug 2004 12:44:32 +0000 (12:44 +0000)
tests/data/slapd-sql.conf [new file with mode: 0644]

diff --git a/tests/data/slapd-sql.conf b/tests/data/slapd-sql.conf
new file mode 100644 (file)
index 0000000..997672f
--- /dev/null
@@ -0,0 +1,70 @@
+# master slapd config -- for testing
+# $OpenLDAP$
+## This work is part of OpenLDAP Software <http://www.openldap.org/>.
+##
+## Copyright 1998-2003 The OpenLDAP Foundation.
+## All rights reserved.
+##
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted only as authorized by the OpenLDAP
+## Public License.
+##
+## A copy of this license is available in the file LICENSE in the
+## top-level directory of the distribution or, alternatively, at
+## <http://www.OpenLDAP.org/license.html>.
+
+#ucdata-path   ./ucdata
+include ./schema/core.schema
+include ./schema/cosine.schema
+include ./schema/inetorgperson.schema
+include ./schema/openldap.schema
+include ./schema/nis.schema
+pidfile     ./testrun/slapd.1.pid
+argsfile    ./testrun/slapd.1.args
+
+#mod#modulepath        ../servers/slapd/back-@BACKEND@/
+#mod#moduleload        back_@BACKEND@.la
+#sqlmod#modulepath ../servers/slapd/back-sql/
+#sqlmod#moduleload back_sql.la
+#monitormod#modulepath ../servers/slapd/back-monitor/
+#monitormod#moduleload back_monitor.la
+
+#
+# normal installations should protect root dse,
+# cn=monitor, cn=schema, and cn=config
+#
+
+access to attr=userpassword
+       by self =wx
+       by anonymous =x
+
+access to *
+       by * read
+
+#######################################################################
+# sql database definitions
+#######################################################################
+
+database        sql
+suffix          "o=Example,c=RU"
+rootdn         "cn=Manager,o=Example,c=RU"
+rootpw          secret
+dbname          example
+dbuser          manager
+dbpasswd        secret
+
+#insentry_query  "insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values ((select max(id)+1 from ldap_entries),?,?,?,?)"
+#
+# rdbms specific directives
+#
+# PostgreSQL
+#postgres#upper_func      "upper"
+#postgres#strcast_func    "text"
+#postgres#concat_pattern  "?||?"
+#
+# MySQL
+#mysql#concat_pattern  "concat(?,?)"
+
+has_ldapinfo_dn_ru      no
+
+#monitor#database monitor