fixed a problem with length limited ldap values
authorAndrew Tridgell <tridge@samba.org>
Fri, 22 Aug 2008 07:36:56 +0000 (17:36 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 22 Aug 2008 07:36:56 +0000 (17:36 +1000)
commitcc43037f19056ed24d7fffa54456d597c63ad105
treee2ae68e4cd85eab35e9a55fa44726e1cb78895b0
parenta83bb07016032bd29e36c8de5a3205bbe318167e
fixed a problem with length limited ldap values

The core ldb code for string matching assumed NULL terminated strings,
whereas the anr module used data_blob_const() to effectively truncate
a ldb_val by changing its length. The ldb code is supposed to be based
around length limited blobs, not NULL terminated strings, so the
correct fix was to change the string comparison functions to be length
limited
(This used to be commit 26c6aa5a80ffaf06fc33f30a6533f8f16ef538bc)
source4/lib/charset/charset.h
source4/lib/charset/util_unistr.c
source4/lib/ldb/common/attrib_handlers.c
source4/lib/ldb/common/ldb_utf8.c
source4/lib/ldb/include/ldb.h
source4/lib/ldb/include/ldb_private.h
source4/lib/ldb/tools/ldbtest.c
source4/lib/ldb_wrap.h
source4/lib/util/util_ldb.c
source4/lib/util/util_ldb.h