From 4e1df1ed46117f5acd3cc982902eb9a1f3460838 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 17 Aug 2006 12:23:25 +0000 Subject: [PATCH] test undefined attribute in filter --- tests/data/sql-read.out | 9 +++++++++ tests/scripts/sql-test000-read | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/tests/data/sql-read.out b/tests/data/sql-read.out index 53fe8c059c..a88f3192b0 100644 --- a/tests/data/sql-read.out +++ b/tests/data/sql-read.out @@ -382,6 +382,15 @@ objectClass: dcObject o: Example dc: example +# Testing undefined attribute in filter... +# refldap://localhost:9012/dc=example,dc=com??sub + +dn: dc=example,dc=com +objectClass: organization +objectClass: dcObject +o: Example +dc: example + # Testing objectClass inheritance in filter... dn: cn=Mitya Kovalev,dc=example,dc=com objectClass: inetOrgPerson diff --git a/tests/scripts/sql-test000-read b/tests/scripts/sql-test000-read index d55d56ae3e..1d206cc9f3 100755 --- a/tests/scripts/sql-test000-read +++ b/tests/scripts/sql-test000-read @@ -326,6 +326,19 @@ if test $RC != 0 ; then exit $RC fi +# ITS#4604 +echo "Testing undefined attribute in filter..." +echo "# Testing undefined attribute in filter..." >> $SEARCHOUT +$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" \ + "(|(o=example)(foobar=x))" >> $SEARCHOUT 2>&1 + +RC=$? +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + echo "Testing objectClass inheritance in filter..." echo "# Testing objectClass inheritance in filter..." >> $SEARCHOUT $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASEDN" \ -- 2.39.5