ldb: activating <= and >= indexing for integers
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Thu, 14 Mar 2019 05:05:23 +0000 (18:05 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Apr 2019 02:07:23 +0000 (02:07 +0000)
commitc9b2a37268e793f2d8a8e3a6a340d2bc869f3f0e
treec668d2c3ed1d7db33a513fa9e65651a7e1b58017
parentf775606516015715379dd76fa545da7c02c65e45
ldb: activating <= and >= indexing for integers

Activating <= and >= mdb indexing in samba for int32 and int64 attributes by:
1. Adding index_format_fn to LDB_SYNTAX_SAMBA_INT32 in ldb_samba
2. Cloning the 64bit LDB_SYNTAX_INTEGER type as LDB_SYNTAX_ORDERED_INTEGER
3. Adding index_format_fn to the new type
4. Modifying LargeInteger use the new type in samba schema
5. Bumping the index version to trigger reindexing

Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/ldif_handlers.c
lib/ldb/common/attrib_handlers.c
lib/ldb/include/ldb.h
lib/ldb/pyldb.c
source4/dsdb/schema/schema_set.c
source4/dsdb/schema/schema_syntax.c