mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 13:09:42 -05:00
test undefined attribute in filter
This commit is contained in:
parent
098153c5bb
commit
4e1df1ed46
2 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" \
|
||||
|
|
|
|||
Loading…
Reference in a new issue