Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

RT#40068 Fix tests to work with 2.4.11

  • Loading branch information...
commit 7b4f3c71dc0a005c21efee80477723110a3667a6 1 parent face36a
@gbarr gbarr authored
Showing with 6 additions and 0 deletions.
  1. +2 −0  t/common.pl
  2. +4 −0 test.cfg
View
2  t/common.pl
@@ -14,6 +14,7 @@ BEGIN
$TEMPDIR = "./temp";
$SCHEMA_DIR ||= "./data";
$SLAPD_DB ||= 'ldbm';
+ $SCHEMA_CHECK = 1 unless defined $SCHEMA_CHECK;
$TESTDB = "$TEMPDIR/test-db";
$CONF = "$TEMPDIR/conf";
@@ -80,6 +81,7 @@ sub start_server {
s/\$([A-Z]\w*)/${$1}/g;
s/^TLS/#TLS/ unless $SSL_PORT;
s/^(sasl.*)/#$1/ unless $SASL;
+ s/^schemacheck.*// unless $SCHEMA_CHECK;
print CONFO;
}
close(CONFI);
View
4 test.cfg
@@ -17,6 +17,10 @@ $SERVER_TYPE = "openldap2";
# to your installation schema dir (eg /usr/local/etc/openldap/schema)
$SCHEMA_DIR = "";
+# for OpenLDAP 2.4.11
+# $SLAPD_DB = 'bdb'; # default is ldbm
+# $SCHEMA_CHECK = 0; # default is to check but 2.4.11 does not like it
+
$EXTERNAL_TESTS = 0;
# %sortctrl = (
Please sign in to comment.
Something went wrong with that request. Please try again.