(possible) wrong UTF8 mangling in tdb / ldb

Andrew Bartlett abartlet at samba.org
Wed Feb 21 11:36:39 GMT 2007

On Wed, 2007-02-21 at 12:16 +0100, Alessandro Sappia wrote:
> hi all,
> i think there is something odd in how ldb checks utf8 fields; I attached
> a small patch
> to show it to you.
> $ export LDB_URL=tdbtest.ldb
> $ ./bin/ldbadd /path/to/samba4/source/lib/ldb/tests/test.ldif
> Assuming that the patch is applied
> ./bin/ldbsearch '(cn=*UTF*)'  gives you two results
> ./bin/ldbsearch '(cn=*àèìòù*) gives you just one
> Assuming that cn field definition maybe case sensitive or case
> insensitive, in any case the two searches must give the same number of
> results. Against OpenLdap these searches gives both two results.
> * the patch contains also a simple test against it.

Are you testing this against LDB built standalone, or as part of Samba4?

Andrew Bartlett
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20070221/71aa1f6e/attachment.bin

More information about the samba-technical mailing list