From 3840353d6a351d2216f025d2fe49cbf195d8cc98 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 4 Dec 2009 16:44:44 +0000 Subject: [PATCH] Support back-null --- tests/data/slapd-idassert.conf | 1 + tests/scripts/test028-idassert | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/data/slapd-idassert.conf b/tests/data/slapd-idassert.conf index b7ba691761..9cef5f3fd1 100644 --- a/tests/data/slapd-idassert.conf +++ b/tests/data/slapd-idassert.conf @@ -61,6 +61,7 @@ database @BACKEND@ suffix "dc=example,dc=com" rootdn "cn=Manager,dc=example,dc=com" rootpw secret +#null#bind on #~null~#directory @TESTDIR@/db.1.a #bdb#index objectClass eq #bdb#index cn,sn,uid pres,eq,sub diff --git a/tests/scripts/test028-idassert b/tests/scripts/test028-idassert index 7ad0f3ad80..7949f0dafc 100755 --- a/tests/scripts/test028-idassert +++ b/tests/scripts/test028-idassert @@ -106,7 +106,7 @@ AUTHZID="u:it/jaj" echo "Testing ldapwhoami as proxy US, $AUTHZID..." $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy US,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" RC=$? -if test $RC != 0 ; then +if test $RC != 0 && test $BACKEND != null ; then echo "ldapwhoami failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit $RC @@ -165,7 +165,7 @@ AUTHZID="dn:cn=Sandbox,ou=Admin,dc=example,dc=com" echo "Testing ldapwhoami as proxy IT, $AUTHZID..." $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy IT,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" RC=$? -if test $RC != 0 ; then +if test $RC != 0 && test $BACKEND != null ; then echo "ldapwhoami failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit $RC @@ -198,7 +198,7 @@ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASE" \ -D "$ID" -w jaj > $SEARCHOUT 2>&1 RC=$? -if test $RC != 0 ; then +if test $RC != 0 && test $BACKEND != null ; then echo "ldapsearch failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit $RC -- 2.39.5