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)
commit26c6aa5a80ffaf06fc33f30a6533f8f16ef538bc
tree273c233e8f740b6d121a060ebc22d88f3372dced
parented66feb80aac7432049fe9fd86a9232984587e17
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
source/lib/charset/charset.h
source/lib/charset/util_unistr.c
source/lib/ldb/common/attrib_handlers.c
source/lib/ldb/common/ldb_utf8.c
source/lib/ldb/include/ldb.h
source/lib/ldb/include/ldb_private.h
source/lib/ldb/tools/ldbtest.c
source/lib/ldb_wrap.h
source/lib/util/util_ldb.c
source/lib/util/util_ldb.h