From d815ce094e7a495fb2ddf0668015c5a1b9bb1dc4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 28 Jul 2011 15:56:15 +1000 Subject: ldb: added a test for an invalid search expression this tests the fix for invalid expressions in & and | expressions Pair-Programmed-With: Andrew Bartlett Pair-Programmed-With: Amitay Isaacs --- lib/ldb/tests/test-generic.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ldb') diff --git a/lib/ldb/tests/test-generic.sh b/lib/ldb/tests/test-generic.sh index ae9ff7344a..7c3db4a411 100755 --- a/lib/ldb/tests/test-generic.sh +++ b/lib/ldb/tests/test-generic.sh @@ -57,6 +57,9 @@ $VALGRIND ldbsearch$EXEEXT '(&(uid=uham)(uid=uham)(!(objectclass=xxx)))' || exi $VALGRIND ldbsearch$EXEEXT '(&(objectclass=person)(uid=uham)(!(uid=uhamxx)))' uid \* \+ dn || exit 1 $VALGRIND ldbsearch$EXEEXT '(&(uid=uham)(uid=uha*)(title=*))' uid || exit 1 +echo "Testing invalid search expression" +$VALGRIND ldbsearch$EXEEXT '(&(uid=uham)(title=foo\blah))' uid && exit 1 + # note that the "((" is treated as an attribute not an expression # this matches the openldap ldapsearch behaviour of looking for a '=' # to see if the first argument is an expression or not -- cgit