test undefined attribute in filter

This commit is contained in:
Pierangelo Masarati 2006-08-17 12:23:25 +00:00
parent 098153c5bb
commit 4e1df1ed46
2 changed files with 22 additions and 0 deletions

View file

@ -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

View file

@ -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" \