From 3cb9d64de3d2fe9d0e80a9a631335b909f7b64b4 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 22 Aug 2005 18:10:23 +0000 Subject: [PATCH] more tests --- tests/data/aci.out | 1 + tests/scripts/test041-aci | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/tests/data/aci.out b/tests/data/aci.out index fdf8ab9e9b..dd550ef18b 100644 --- a/tests/data/aci.out +++ b/tests/data/aci.out @@ -65,3 +65,4 @@ uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=People, uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,dc=exam ple,dc=com +# Searching "ou=Groups,dc=example,dc=com" as "cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" (should succeed with no results)... diff --git a/tests/scripts/test041-aci b/tests/scripts/test041-aci index fd6f46c096..5e6ec138bb 100755 --- a/tests/scripts/test041-aci +++ b/tests/scripts/test041-aci @@ -217,6 +217,21 @@ if test $RC != 0 ; then exit $RC fi +# Search must fail +BINDDN="cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" +BINDPW=bjensen +echo "Searching \"$BASEDN\" as \"$BINDDN\" (should succeed with no results)..." +echo "# Searching \"$BASEDN\" as \"$BINDDN\" (should succeed with no results)..." >> $SEARCHOUT +$LDAPSEARCH -s one -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ + -D "$BINDDN" -w "$BINDPW" \ + '(objectClass=*)' >> $SEARCHOUT 2>> $TESTOUT +RC=$? +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + test $KILLSERVERS != no && kill -HUP $KILLPIDS LDIF=$ACIOUT -- 2.39.5