While "(attr>=9)" only returns objects with attr >= 9 "(attr>9)" also returns objects with attr < 9. $ bin/ldbsearch -H tmp.ldb # record 1 dn: cn=obj1 attr: 5 distinguishedName: cn=obj1 # record 2 dn: cn=obj2 attr: 10 distinguishedName: cn=obj2 # returned 2 records # 2 entries # 0 referrals $ bin/ldbsearch -H tmp.ldb '(attr>=9)' # record 1 dn: cn=obj2 attr: 10 distinguishedName: cn=obj2 # returned 1 records # 1 entries # 0 referrals $ bin/ldbsearch -H tmp.ldb '(attr>9)' # record 1 dn: cn=obj1 # record 2 dn: cn=obj2 # returned 2 records # 2 entries # 0 referrals
Andrew, metze, this bug had a very funny cause (the ldbsearch parsing code detected only "=" as a filter candidate). A patch for this and some related issues can be found in my own "master" branch.
Hi Matthias, could you comment which commit are you refering to?
Please apply these four patches: http://gitweb.samba.org/samba.git/?p=mdw/samba.git;a=commitdiff;h=f38557dc50c8e7184c4e8530c0a8effb217e8fc0 http://gitweb.samba.org/samba.git/?p=mdw/samba.git;a=commitdiff;h=f5b53c57246bbbbea75ce4d65a3d34b18984d18b http://gitweb.samba.org/samba.git/?p=mdw/samba.git;a=commitdiff;h=da587f940031e2e852bbc437087d7232bf4f2e9b http://gitweb.samba.org/samba.git/?p=mdw/samba.git;a=commitdiff;h=c7c948c58bca15dba63cae669a18168ca8bece32
Fixed in "master".