version 1.7.2.6, 2005/10/05 17:41:32
|
version 1.7.2.7, 2005/11/03 18:03:03
|
Line 1
|
Line 1
|
#! /bin/sh |
#! /bin/sh |
# $OpenLDAP: pkg/ldap/tests/scripts/test031-component-filter,v 1.14 2005/09/30 05:32:50 hyc Exp $ |
# $OpenLDAP: pkg/ldap/tests/scripts/test031-component-filter,v 1.15 2005/11/01 18:59:23 kurt Exp $ |
## This work is part of OpenLDAP Software <http://www.openldap.org/>. |
## This work is part of OpenLDAP Software <http://www.openldap.org/>. |
## |
## |
## Copyright 1998-2005 The OpenLDAP Foundation. |
## Copyright 1998-2005 The OpenLDAP Foundation. |
Line 18 echo "running defines.sh"
|
Line 18 echo "running defines.sh"
|
|
|
## If you use this script then |
## If you use this script then |
## Make sure that you turn on LDAP_COMP_MATCH in slapd source codes |
## Make sure that you turn on LDAP_COMP_MATCH in slapd source codes |
## and --enable-modules is configured yes |
## and --enable-modules is configured yes |
if test "$AC_WITH_MODULES_ENABLED" != "yes" ; then |
if test "$AC_WITH_MODULES_ENABLED" != "yes" ; then |
echo "dynamic module disabled, test skipped" |
echo "dynamic module disabled, test skipped" |
exit 0 |
exit 0 |
Line 163 if test $RC != 0 ; then
|
Line 163 if test $RC != 0 ; then
|
exit $RC |
exit $RC |
fi |
fi |
|
|
FILTER="(userCertificate:componentFilterMatch:=item:{component \"toBeSigned.extensions.\2a.extnID\",rule allComponentsMatch, value 2.5.29.14 })" |
FILTER="(userCertificate:componentFilterMatch:=item:{ component \"toBeSigned.extensions.\2a.extnID\", rule allComponentsMatch, value 2.5.29.14 })" |
echo " f=$FILTER ..." |
echo " f=$FILTER ..." |
echo "# f=$FILTER ..." >> $SEARCHOUT |
echo "# f=$FILTER ..." >> $SEARCHOUT |
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ |
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ |
Line 176 if test $RC != 0 ; then
|
Line 176 if test $RC != 0 ; then
|
exit $RC |
exit $RC |
fi |
fi |
|
|
FILTER="(userCertificate:componentFilterMatch:=not:item:{component \"toBeSigned.extensions.\2a\",rule allComponentsMatch, value { extnID 2.5.29.19 , extnValue '30030101FF'H })" |
FILTER="(userCertificate:componentFilterMatch:=not:item:{ component \"toBeSigned.extensions.\2a\", rule allComponentsMatch, value { extnID 2.5.29.19 , extnValue '30030101FF'H })" |
echo " f=$FILTER ..." |
echo " f=$FILTER ..." |
echo "# f=$FILTER ..." >> $SEARCHOUT |
echo "# f=$FILTER ..." >> $SEARCHOUT |
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ |
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ |
Line 255 if test $RC != 0 ; then
|
Line 255 if test $RC != 0 ; then
|
exit $RC |
exit $RC |
fi |
fi |
|
|
|
# extraction filter |
FILTER="(x509CertificateIssuer=c=US)" |
FILTER="(x509CertificateIssuer=c=US)" |
echo " f=$FILTER ..." |
echo " f=$FILTER ..." |
echo "# f=$FILTER ..." >> $SEARCHOUT |
echo "# f=$FILTER ..." >> $SEARCHOUT |
Line 268 if test $RC != 0 ; then
|
Line 269 if test $RC != 0 ; then
|
exit $RC |
exit $RC |
fi |
fi |
|
|
|
# extraction filter |
FILTER="(x509CertificateSerial=0)" |
FILTER="(x509CertificateSerial=0)" |
echo " f=$FILTER ..." |
echo " f=$FILTER ..." |
echo "# f=$FILTER ..." >> $SEARCHOUT |
echo "# f=$FILTER ..." >> $SEARCHOUT |
Line 281 if test $RC != 0 ; then
|
Line 283 if test $RC != 0 ; then
|
exit $RC |
exit $RC |
fi |
fi |
|
|
|
# extraction filter |
FILTER="(x509CertificateSerialAndIssuer:certificateExactMatch:=0\$c=US)" |
FILTER="(x509CertificateSerialAndIssuer:certificateExactMatch:=0\$c=US)" |
echo " f=$FILTER ..." |
echo " f=$FILTER ..." |
echo "# f=$FILTER ..." >> $SEARCHOUT |
echo "# f=$FILTER ..." >> $SEARCHOUT |