From a696045179f4deaeeda2b7518625b5cbcdfeba78 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 20 Aug 2004 12:44:32 +0000 Subject: [PATCH] added back-sql test under conditions; needs a README... --- tests/data/slapd-sql.conf | 70 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 tests/data/slapd-sql.conf diff --git a/tests/data/slapd-sql.conf b/tests/data/slapd-sql.conf new file mode 100644 index 0000000000..997672f10d --- /dev/null +++ b/tests/data/slapd-sql.conf @@ -0,0 +1,70 @@ +# master slapd config -- for testing +# $OpenLDAP$ +## This work is part of OpenLDAP Software . +## +## 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 +## . + +#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 -- 2.39.5