[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: escaping '*' in search strings (ITS#275)



Hi Kurt,

Sorry for the long delay replying,  another project took over.

I recently tested OPENLDAP_REL_ENG_1_2_7 and OPENLDAP_RELEASE.  I run
a stress test where I create a few records with random values then
spawn a bunch of children to search, add, modify, and delete them in
parallel.

The most common error with OpenLDAP is not finding records which
actually exist.  A seach like attr=*val will fail to find a record
which can be found by searching for its dn.

    OPENLDAP_RELEASE had this problem in about 25% of tests.
    OPENLDAP_REL_ENG_1_2_7 was better butnot perfect at 1.35%

I'll include an example below.  The strings are perl-encoded.  You can
cut-and-paste them into a perl script.

944613288 magma ldap-stress [21025] error: search found missing record by dn but not attr=sn : search= "sn=*RiM7u\$c R[,wMtNelCroa}Ae^dc0a7cS\$Pg>lj\"3<\\)}C uHgXYuXFU2*"  dn=ldap_stress_idx=ldap-stress-magma-20384-5, o=Government of British Columbia,c=CA result= { "ldap_stress_idx=ldap-stress-magma-20384-5, o=Government of British Columbia,c=CA" => { "serial" => [ "1" ], "cn" => [ "Ys6\t/de}on`&eLZHF)#Myt6_ZiE36/omi_j\t{o= BP!F]s!" ], "sn" => [ "mc%8me>_\t]\t4VRiM7u\$c R[,wMtNelCroa}Ae^dc0a7cS\$Pg>lj\"3<)}C uHgXYuXFU2dY4" ], "delete_1" => [ "9?>u7\@UW<plDO)_\\?{4Gr`?" ], "localemail" => [ "?I0r2o iwy`:o" ], "mail" => [ " w1gtHu\tBVN ]wmVKf;?wMgqVCOom2 j{Xp\n\'J\tm\"Kh#6tq\rzb>WO\t!>AifN~aWQX" ], "creatorsname" => [ "o=government of british columbia, c=CA" ], "ldap_stress" => [ "ldap-stress-magma-20384" ], "unindexed" => [ "PIcNV/\\23L=-Kd=BZrztiZBo  oQJ!k}cmtXc\rh6K\'I-/ldPDC8M]" ], "createtimestamp" => [ "19991208013058Z" ], "email" => [ "0_;\$ttJDaLQt<Ts\rg2:PE&0Ho\'9=yR\@{uYVO^\'&&xq?n9lm%\@ m\r\@\@G:Y 5=OA29{feX>\\wo " ], "ldap_stress_idx" => [ "ldap-stress-magma-20384-5" ], "serialnumber" => [ "C3AOB KN fiA." ], "givenname" => [ "wUK`- B0aGe>lBgfQI9^=>!nF6tN.hbl1L=DGf;GM/xXqD27!" ], "objectclass" => [ "top" ], "telephonenumber" => [ "FPk\n3P5\\;U\'\'5NxJ" ] } }


> X-Real-To: <noel@burton-krahn.com>
> Date: Mon, 30 Aug 1999 17:40:27 GMT
> From: Kurt Zeilenga <kurt@OpenLDAP.org>
> CC: <openldap-its@OpenLDAP.org>
> X-Loop: openldap-its@OpenLDAP.org
> Content-Type: text
> X-UIDL: 29aa8a4ec40c794811d8b6cba4360e5e
> 
> I committed a fix for this problem to OPENLDAP_REL_ENG_1_2.
> Please test.
>