From f59089b5b0cf5ae6cc179dbf8428280a47793a41 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 20 Aug 2004 15:24:39 +0000 Subject: [PATCH] now PostgreSQL seems to work... --- servers/slapd/back-sql/rdbms_depend/pgsql/testdb_metadata.sql | 2 ++ tests/data/slapd-sql.conf | 2 +- tests/scripts/test031-sql | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-sql/rdbms_depend/pgsql/testdb_metadata.sql b/servers/slapd/back-sql/rdbms_depend/pgsql/testdb_metadata.sql index aaffeb264c..3b9943bc1b 100644 --- a/servers/slapd/back-sql/rdbms_depend/pgsql/testdb_metadata.sql +++ b/servers/slapd/back-sql/rdbms_depend/pgsql/testdb_metadata.sql @@ -70,6 +70,8 @@ insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values (6,'documentTitl -- oc_name the name of the objectClass; it MUST match the name of an objectClass that is loaded in slapd's schema insert into ldap_entry_objclasses (entry_id,oc_name) values (4,'referral'); +insert into ldap_entry_objclasses (entry_id,oc_name) values (2,'posixAccount'); + -- referrals mapping: entries that should be treated as referrals are stored here -- entry_id the "ldap_entries.id" of the entry that should be treated as a referral -- url the URI of the referral diff --git a/tests/data/slapd-sql.conf b/tests/data/slapd-sql.conf index 2471f5275f..86da386d46 100644 --- a/tests/data/slapd-sql.conf +++ b/tests/data/slapd-sql.conf @@ -51,11 +51,11 @@ 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#insentry_query "insert into ldap_entries (id,dn,oc_map_id,parent,keyval) values ((select max(id)+1 from ldap_entries),?,?,?,?)" #postgres#upper_func "upper" #postgres#strcast_func "text" #postgres#concat_pattern "?||?" diff --git a/tests/scripts/test031-sql b/tests/scripts/test031-sql index 80aab28768..812de2d8a5 100755 --- a/tests/scripts/test031-sql +++ b/tests/scripts/test031-sql @@ -223,7 +223,7 @@ case ${RDBMS} in # list here the RDBMSes whose mapping allows writes postgres) MANAGERDN="cn=Manager,${BASEDN}" - $LDAPMODIFY -v -D "$MANAGERDN" -w $PASSWD \ + $LDAPMODIFY -v -c -D "$MANAGERDN" -w $PASSWD \ -h $LOCALHOST -p $PORT1 > \ $TESTOUT 2>&1 << EOMODS version: 1 -- 2.39.5