From 08d397f65d311ea216c18550014360dcc881c5a0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 13 Sep 2000 14:31:22 +0000 Subject: [PATCH] Use root-dse to verify schema files --- tests/data/slapd-master.conf | 1 - tests/data/slapd-schema.conf | 39 +++++++++++++++++++++++++++++++++++ tests/scripts/defines.sh | 2 ++ tests/scripts/test000-rootdse | 2 +- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 tests/data/slapd-schema.conf diff --git a/tests/data/slapd-master.conf b/tests/data/slapd-master.conf index 7c0cc687dc..a9ab4d3156 100644 --- a/tests/data/slapd-master.conf +++ b/tests/data/slapd-master.conf @@ -8,7 +8,6 @@ ucdata-path ./ucdata include ./schema/core.schema include ./schema/cosine.schema include ./schema/inetorgperson.schema -#include ./schema/nis.schema schemacheck on pidfile ./test-db/slapd.pid argsfile ./test-db/slapd.args diff --git a/tests/data/slapd-schema.conf b/tests/data/slapd-schema.conf new file mode 100644 index 0000000000..297274672b --- /dev/null +++ b/tests/data/slapd-schema.conf @@ -0,0 +1,39 @@ +# $OpenLDAP$ +# +# stand-alone slapd config -- for testing +# with indexing +# +ucdata-path ./ucdata +#include ./data/slapd.at.conf +#include ./data/slapd.oc.conf +# +include ./schema/core.schema +include ./schema/cosine.schema +# +include ./schema/corba.schema +include ./schema/java.schema +include ./schema/inetorgperson.schema +include ./schema/krb5-kdc.schema +include ./schema/misc.schema +include ./schema/nadf.schema +include ./schema/nis.schema +include ./schema/openldap.schema +# +schemacheck on +pidfile ./test-db/slapd.pid +argsfile ./test-db/slapd.args + +####################################################################### +# ldbm database definitions +####################################################################### + +database ldbm +suffix "o=University of Michigan, c=US" +directory ./test-db +rootdn "cn=Manager, o=University of Michigan, c=US" +rootpw secret +index objectclass eq +index uid pres,eq,sub +index cn,sn pres,eq,sub,subany +dbnosync +dbnolocking diff --git a/tests/scripts/defines.sh b/tests/scripts/defines.sh index 6a513fa7a5..42ae7352c9 100755 --- a/tests/scripts/defines.sh +++ b/tests/scripts/defines.sh @@ -11,6 +11,7 @@ if test "$BACKEND" = "bdb2" ; then MASTERCONF=$DATADIR/slapd-bdb2-repl-master.conf SLAVECONF=$DATADIR/slapd-bdb2-repl-slave.conf REFSLAVECONF=$DATADIR/slapd-bdb2-ref-slave.conf + SCHEMACONF=$DATADIR/slapd-bdb2-schema.conf TIMING="-t" else CONF=$DATADIR/slapd.conf @@ -20,6 +21,7 @@ else MASTERCONF=$DATADIR/slapd-repl-master.conf SLAVECONF=$DATADIR/slapd-repl-slave.conf REFSLAVECONF=$DATADIR/slapd-ref-slave.conf + SCHEMACONF=$DATADIR/slapd-schema.conf fi TOOLARGS="-x $LDAP_TOOLARGS" diff --git a/tests/scripts/test000-rootdse b/tests/scripts/test000-rootdse index 3f7a0e89fa..aedbce8859 100755 --- a/tests/scripts/test000-rootdse +++ b/tests/scripts/test000-rootdse @@ -21,7 +21,7 @@ echo "Cleaning up in $DBDIR..." rm -f $DBDIR/[!C]* echo "Starting slapd on TCP/IP port $PORT..." -$SLAPD -f $CONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 & +$SLAPD -f $SCHEMACONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 & PID=$! echo "Using ldapsearch to retrieve all the entries..." -- 2.39.5