Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 291181 Details for
Bug 249548
Review Request: fedora-ds-admin - Administration server used by Fedora Directory Server
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
diffs to fix rpmlint items
cvsdiffs (text/plain), 35.96 KB, created by
Rich Megginson
on 2008-01-09 18:34:44 UTC
(
hide
)
Description:
diffs to fix rpmlint items
Filename:
MIME Type:
Creator:
Rich Megginson
Created:
2008-01-09 18:34:44 UTC
Size:
35.96 KB
patch
obsolete
>Index: tetframework/Shared/DS/6.0/ksh/applib.ksh >=================================================================== >RCS file: /cvs/dirsec/tetframework/Shared/DS/6.0/ksh/applib.ksh,v >retrieving revision 1.98 >diff -u -8 -r1.98 applib.ksh >--- tetframework/Shared/DS/6.0/ksh/applib.ksh 27 Aug 2007 05:46:38 -0000 1.98 >+++ tetframework/Shared/DS/6.0/ksh/applib.ksh 4 Oct 2007 16:48:06 -0000 >@@ -1201,16 +1201,53 @@ > for i in "$@" > do > echo "nsindextype: $i" > done > ) | $LDAPADD -v -h $LDAPhost -p $LDAPport -D "$ROOTDN" -w "$ROOTDNPW" > return $? > } > >+AddIndexMatchingRule() >+# usage : AddIndex BackendName indexName indexType[,indexType]* matchingRule[,matchingRule]* >+# function to add the indexName indexe to a given backend >+# assume the base Index entry is already there (see AddIndex_Base) : >+# cn=index,cn=${BackendName},cn=ldbm database,cn=plugins,cn=config >+# This also allows you to specify the optional nsMatchingRule to use >+# if you don't want to specify a matching rule, use AddIndex instead >+{ >+BackendName=$1 >+IndexName=$2 >+IndexTypes=$3 >+MatchingRules=$4 >+ >+message "AddIndex: BE=$BackendName $IndexName, \"$@\"" >+ >+IndexBase="cn=index,cn=${BackendName},cn=ldbm database,cn=plugins,cn=config" >+message "AddIndex: cn=$IndexName,${IndexBase}" >+( >+cat <<EOF >+dn: cn=${IndexName},${IndexBase} >+objectclass: top >+objectclass: nsIndex >+cn: ${IndexName} >+nssystemindex: true >+EOF >+for i in `echo "$IndexTypes" | sed -e "s/,/ /g"` >+do >+ echo "nsindextype: $i" >+done >+for i in `echo "$MatchingRules" | sed -e "s/,/ /g"` >+do >+ echo "nsMatchingRule: $i" >+done >+) | $LDAPADD -v -h $LDAPhost -p $LDAPport -D "$ROOTDN" -w "$ROOTDNPW" >+return $? >+} >+ > DelIndex() > # usage : DelIndex BackendName [ indexName ...] > # function to delete the indexName for the given BackendName > # if no indexName, will delete the top level index > { > BackendName=$1 > shift > >Index: tetframework/testcases/DS/6.0/filter/filter.ksh >=================================================================== >RCS file: /cvs/dirsec/tetframework/testcases/DS/6.0/filter/filter.ksh,v >retrieving revision 1.21 >diff -u -8 -r1.21 filter.ksh >--- tetframework/testcases/DS/6.0/filter/filter.ksh 17 Jul 2007 21:41:47 -0000 1.21 >+++ tetframework/testcases/DS/6.0/filter/filter.ksh 4 Oct 2007 16:48:07 -0000 >@@ -1,16 +1,16 @@ > #!/bin/ksh > # > # filename : filter.ksh > # > #set -x > tet_startup="ServerInfo" > tet_cleanup="" >-iclist="ic0 ic1 ic2 ic3 ic4 ic5 ic6 ic7 ic8 ic9 ic10 ic11 ic12 ic13 ic14 ic15 ic16 ic17 ic18 ic19 ic20 ic21 ic22 ic23 ic24 ic25 ic26 ic27 ic28 ic29 ic30 ic31 ic32 ic33 ic34 ic35 ic36 ic37 ic38 ic39 ic40 ic41 ic42 ic43 ic44 ic45 ic46 ic47 ic48 ic49 ic50 ic51 ic52 ic53 ic54 ic55 ic56 ic57 ic58 ic59 ic60 ic61 ic62 ic63 ic64 ic65 ic66 ic67 ic68 ic69 ic70 ic71 ic72 ic73 ic74 ic75 ic76 ic77 ic78 ic79 ic80 ic81 ic82 ic83 ic84 ic85 ic86 ic87 ic88 ic89 ic90 ic91 ic92 ic93 ic94 ic99" >+iclist="ic0 ic1 ic2 ic3 ic4 ic5 ic6 ic7 ic8 ic9 ic10 ic11 ic12 ic13 ic14 ic15 ic16 ic17 ic18 ic19 ic20 ic21 ic22 ic23 ic24 ic25 ic26 ic27 ic28 ic29 ic30 ic31 ic32 ic33 ic34 ic35 ic36 ic37 ic38 ic39 ic40 ic41 ic42 ic43 ic44 ic45 ic46 ic47 ic48 ic49 ic50 ic51 ic52 ic53 ic54 ic55 ic56 ic57 ic58 ic59 ic60 ic61 ic62 ic63 ic64 ic65 ic66 ic67 ic68 ic69 ic70 ic71 ic72 ic73 ic74 ic75 ic76 ic77 ic78 ic79 ic80 ic81 ic82 ic83 ic84 ic85 ic86 ic87 ic88 ic89 ic90 ic91 ic92 ic93 ic94 ic95 ic96 ic97 ic98 ic99 ic100 ic101 ic102 ic103 ic104 ic105 ic106 ic107 ic108 ic109 ic110 ic111 ic112 ic113 ic114 ic115 ic116" > ic0="filters_startup" > ic1="fltr_1" > ic2="fltr_2" > ic3="fltr_3" > ic4="fltr_4" > ic5="fltr_5" > ic6="fltr_6" > ic7="fltr_7" >@@ -96,22 +96,45 @@ > ic87="fltr_87" > ic88="fltr_88" > ic89="fltr_89" > ic90="fltr_90" > ic91="fltr_91" > ic92="fltr_92" > ic93="bug175897" > ic94="bug170520" >-ic99="filters_cleanup" >+ic95="bug249366_eq_index" >+ic96="bug249366_eq_noindex" >+ic97="bug249366_eq_myindex" >+ic98="bug249366_not_index" >+ic99="bug249366_not_noindex" >+ic100="bug249366_not_myindex" >+ic101="bug249366_ge_index" >+ic102="bug249366_ge_noindex" >+ic103="bug249366_ge_myindex" >+ic104="bug249366_le_index" >+ic105="bug249366_le_noindex" >+ic106="bug249366_le_myindex" >+ic107="bug249366_nomatch_noindex" >+ic108="bug249366_nomatch_index" >+ic109="bug249366_nomatch_myindex" >+ic110="bug249366_nolematch_noindex" >+ic111="bug249366_nolematch_index" >+ic112="bug249366_nolematch_myindex" >+ic113="bug249366_nogematch_noindex" >+ic114="bug249366_nogematch_index" >+ic115="bug249366_nogematch_myindex" >+ic116="filters_cleanup" > > #### Set some basic variables for the testplan > TESTBASEDN="dc=example,dc=com" > BACKEND_NAME="example" > FLT_LDIF="$TET_ROOT/../data/DS/$VER/filter/$CHARSET/filters.ldif" >+MYINTATTR=myintattr >+MYINTATTR_LDIF="$TET_ROOT/../data/DS/$VER/filter/$CHARSET/myintattr.ldif" > export TESTBASEDN BACKEND_NAME FLT_LDIF > > #### Here are the basic filters to be used and reused during the test > F1="(uid=mward)" > F2="(l=sunnyvale)" > F3_1="(sn:2.16.840.1.113730.3.3.2.7.1:==passin)" > F3_2="(sn:de:==passin)" > F3_3="(sn:2.16.840.1.113730.3.3.2.7.1.3:=passin)" >@@ -296,16 +319,25 @@ > echo $res | grep -i "$key"':[ ].*'"$val" > /dev/null 2>&1 > RC=$? > message "search expect \"$key: $val\" result : $RC" > echo "search result : \"$res\"" > return $RC > > } > >+# make sure that res contains only the number of entries specified >+numResults() >+{ >+ num=$1 >+ testnum=`echo "$res" | grep \^dn | wc -l` >+ >+ test $num -eq $testnum >+} >+ > > filters_startup() > { > message "Starting up the Filter Test Plan ..." > TS_startup filter > # Assume that the instance is already created, just > # try and start it to make sure it's up from the > # previous tests >@@ -328,16 +360,34 @@ > > AddIndex $BACKEND_NAME userCertificate pres eq sub > if [ $? -ne 0 ]; then > message "addition of the userCertificate index failed" > result FAIL > return > fi > >+ # to allow <= and >= in indexed uidNumber searches >+ AddIndexMatchingRule $BACKEND_NAME uidNumber pres,eq integerOrderingMatch >+ if [ $? -ne 0 ]; then >+ message "addition of the uidNumber index failed" >+ result FAIL >+ return >+ fi >+ >+ # add a new integer syntax attribute that specifies ORDERING >+ RC_Check 0 $LDAPADD -h $LDAPhost -p $LDAPport -D "$ROOTDN" -w $ROOTDNPW -f $MYINTATTR_LDIF >+ # index it >+ AddIndex $BACKEND_NAME $MYINTATTR pres eq >+ >+ # we will test 3 integer syntax attributes >+ # gidNumber - no ordering, not indexed >+ # uidNumber - indexed, ordering specified in index config >+ # myintattr - indexed, ordering specified in schema >+ > message "ImportNoConfig $FLT_LDIF $BACKEND_NAME" > ImportNoConfig $FLT_LDIF $BACKEND_NAME > if [ $? -ne 0 ]; then > message "Cannot Import $FLT_LDIF $BACKEND_NAME" > result FAIL > return > fi > >@@ -4239,16 +4289,915 @@ > else > message "Passed: unindexed filter = cert2 search" > fi > > tet_result $TestResult > return > } > >+# need to test unindexed searching/filtering of integer syntax attributes >+bug249366_eq_index() { >+ message "RUNNING bug249366_eq_index: = operator, indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(uidNumber=18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 1 ; then >+ message "FAILING due to search returned more than one matching entry - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_eq_noindex() { >+ message "RUNNING bug249366_eq_noindex: = operator, not indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(gidNumber=18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 1 ; then >+ message "FAILING due to search returned more than one matching entry - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+bug249366_eq_myindex() { >+ message "RUNNING bug249366_eq_myindex: = operator, my indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "($MYINTATTR=18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 1 ; then >+ message "FAILING due to search returned more than one matching entry - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+ >+bug249366_not_index() { >+ message "RUNNING bug249366_not_index: ! operator, indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(&(uidNumber=*)(!(uidNumber=18446744073709551617)))" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexuserb, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserd, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ set +xv >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_not_noindex() { >+ message "RUNNING bug249366_not_noindex: ! operator, not indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(&(gidNumber=*)(!(gidNumber=18446744073709551617)))" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexuserb, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserd, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_not_myindex() { >+ message "RUNNING bug249366_not_myindex: ! operator, my indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(&($MYINTATTR=*)(!($MYINTATTR=18446744073709551617)))" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexuserb, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserd, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_ge_index() { >+ message "RUNNING bug249366_ge_index: >= operator, indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(uidNumber>=-18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserb, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_ge_noindex() { >+ message "RUNNING bug249366_ge_noindex: >= operator, not indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(gidNumber>=-18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserb, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_ge_myindex() { >+ message "RUNNING bug249366_ge_myindex: >= operator, my indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "($MYINTATTR>=-18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserb, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_le_index() { >+ message "RUNNING bug249366_le_index: <= operator, indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(uidNumber<=18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserd, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_le_noindex() { >+ message "RUNNING bug249366_le_noindex: <= operator, not indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(gidNumber<=18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserd, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_le_myindex() { >+ message "RUNNING bug249366_le_myindex: <= operator, my indexed " >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "($MYINTATTR<=18446744073709551617)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ checkQuota dn "cn=intindexusera, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserc, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserd, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexusere, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserf, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ checkQuota dn "cn=intindexuserg, ou=People, dc=example, dc=com" >+ RC=$? >+ if [ $RC -ne 0 ] ; then >+ message "FAILING due to Unexpected Results : $RC" >+ tet_result FAIL >+ return >+ fi >+ >+ if ! numResults 6 ; then >+ message "FAILING due to search did not return 6 matching entries - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nomatch_noindex() { >+ message "bug249366_nomatch_noindex: Search for non-existent value - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(gidNumber=54321)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nomatch_index() { >+ message "bug249366_nomatch_index: Search for non-existent indexed value - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(uidNumber=54321)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nomatch_myindex() { >+ message "bug249366_nomatch_myindex: Search for non-existent myindexed value - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "($MYINTATTR=54321)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nolematch_noindex() { >+ message "bug249366_nolematch_noindex: Search for non-existent value outside LE range - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(gidNumber<=-999999999999999999999999999999)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nolematch_index() { >+ message "bug249366_nolematch_index: Search for non-existent indexed value outside LE range - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(uidNumber<=-999999999999999999999999999999)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nolematch_myindex() { >+ message "bug249366_nolematch_myindex: Search for non-existent myindexed value outside LE range - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "($MYINTATTR<=-999999999999999999999999999999)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nogematch_noindex() { >+ message "bug249366_nogematch_noindex: Search for non-existent value outside GE range - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(gidNumber>=999999999999999999999999999999)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nogematch_index() { >+ message "bug249366_nogematch_index: Search for non-existent indexed value outside GE range - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "(uidNumber>=999999999999999999999999999999)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ >+bug249366_nogematch_myindex() { >+ message "bug249366_nogematch_myindex: Search for non-existent myindexed value outside GE range - should return nothing" >+ res=`$LDAPSEARCH -h $LDAPhost -p $LDAPport \ >+ -D "uid=scarte2,ou=people,dc=example,dc=com" -w scooter \ >+ -b $TESTBASEDN "($MYINTATTR>=999999999999999999999999999999)" dn` >+ RC=$? >+ if [ $RC -ne 0 ]; then >+ message "ldapsearch failed:$RC" >+ tet_result FAIL >+ else >+ if ! numResults 0 ; then >+ message "FAILING - search should have returned no matches but returned matches - $res" >+ tet_result FAIL >+ return >+ fi >+ >+ tet_result PASS >+ return >+ fi >+} >+ > filters_cleanup() > { > message "Filters: Cleaning up suffixes after test run" > # This function just cleans up after the test by, > # removing the test suffix > # > TestResult=PASS > >Index: tetframework/testcases/DS/6.0/filter/tet_scen >=================================================================== >RCS file: /cvs/dirsec/tetframework/testcases/DS/6.0/filter/tet_scen,v >retrieving revision 1.18 >diff -u -8 -r1.18 tet_scen >--- tetframework/testcases/DS/6.0/filter/tet_scen 5 Jan 2006 21:47:36 -0000 1.18 >+++ tetframework/testcases/DS/6.0/filter/tet_scen 4 Oct 2007 16:48:07 -0000 >@@ -10,17 +10,17 @@ > startup > "Starting filter tests startup" > /filter.ksh{0} > "Ending filter tests startup" > > filter > > "Starting filter tests" >- /filter.ksh{1-94} >+ /filter.ksh{1-116} > "Starting Vaddr filter tests" > /vfilter.ksh{0-10} > "Starting OID backend tests" > /vfilter.ksh{12-120} > "running the aci test" > /vfilter.ksh{11} > "Ending filter tests" > >Index: tetframework/data/DS/6.0/filter/en/filters.ldif >=================================================================== >RCS file: /cvs/dirsec/tetframework/data/DS/6.0/filter/en/filters.ldif,v >retrieving revision 1.5 >diff -u -8 -r1.5 filters.ldif >--- tetframework/data/DS/6.0/filter/en/filters.ldif 5 Jan 2006 18:12:18 -0000 1.5 >+++ tetframework/data/DS/6.0/filter/en/filters.ldif 4 Oct 2007 16:48:08 -0000 >@@ -5819,8 +5819,64 @@ > CwkwfgYDVR0SBHcwdYZzbGRhcDovL2RzLTMuYzNwa2kuY2hhbWIuZGlzYS5taWwvY24lM2RET0Ql > MjBDTEFTUyUyMDMlMjBDQS0zJTJjb3UlM2RQS0klMmNvdSUzZERvRCUyY28lM2RVLlMuJTIwR292 > ZXJubWVudCUyY2MlM2RVUzCBqwYDVR0fBIGjMIGgMIGdoIGaoIGXhoGUbGRhcDovL2RzLTMuYzNw > a2kuY2hhbWIuZGlzYS5taWwvY24lM2RET0QlMjBDTEFTUyUyMDMlMjBDQS0zJTJjb3UlM2RQS0kl > MmNvdSUzZERvRCUyY28lM2RVLlMuJTIwR292ZXJubWVudCUyY2MlM2RVUz9jZXJ0aWZpY2F0ZXJl > dm9jYXRpb25saXN0O2JpbmFyeTANBgkqhkiG9w0BAQUFAAOBgQB5aLv3JjaAb+eIOrW3niXs96na > mbjDq1IbWK55YVcpCBgD2fYasSlEmnt7ykQlYW8woRORaKv9ERpTcfcg4odi9VbtzIyzYHVyY5DU > LuaEhqNiKCnjqWXPeMHmtD2H6nBiDAo6tfyitL5E+NUhz+Rigq7xT5g0Jqo1gXq1jJFdCw== >+ >+dn: cn=intindexusera, ou=People, dc=example, dc=com >+objectclass: top >+objectclass: extensibleObject >+uidnumber: 18446744073709551617 >+gidnumber: 18446744073709551617 >+myintattr: 18446744073709551617 >+description: uidnumber value 2^64+1 - gidnumber is same but not indexed >+ >+dn: cn=intindexuserb, ou=People, dc=example, dc=com >+objectclass: top >+objectclass: extensibleObject >+uidnumber: 18446744073709551618 >+gidnumber: 18446744073709551618 >+myintattr: 18446744073709551618 >+description: uidnumber value 2^64+2 - gidnumber is same but not indexed >+ >+dn: cn=intindexuserc, ou=People, dc=example, dc=com >+objectclass: top >+objectclass: extensibleObject >+uidnumber: -18446744073709551617 >+gidnumber: -18446744073709551617 >+myintattr: -18446744073709551617 >+description: uidnumber value -2^64+1 - gidnumber is same but not indexed >+ >+dn: cn=intindexuserd, ou=People, dc=example, dc=com >+objectclass: top >+objectclass: extensibleObject >+uidnumber: -18446744073709551618 >+gidnumber: -18446744073709551618 >+myintattr: -18446744073709551618 >+description: uidnumber value -2^64+2 - gidnumber is same but not indexed >+ >+dn: cn=intindexusere, ou=People, dc=example, dc=com >+objectclass: top >+objectclass: extensibleObject >+uidnumber: 0 >+gidnumber: 0 >+myintattr: 0 >+description: uidnumber value 0 - gidnumber is same but not indexed >+ >+dn: cn=intindexuserf, ou=People, dc=example, dc=com >+objectclass: top >+objectclass: extensibleObject >+uidnumber: 2 >+gidnumber: 2 >+myintattr: 2 >+description: uidnumber value 2 - gidnumber is same but not indexed >+ >+dn: cn=intindexuserg, ou=People, dc=example, dc=com >+objectclass: top >+objectclass: extensibleObject >+uidnumber: -2 >+gidnumber: -2 >+myintattr: -2 >+description: uidnumber value -2 - gidnumber is same but not indexed
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249548
:
159929
|
159930
|
291181
|
291184
|
291308