diff options
author | Aaron Haslett <aaronhaslett@catalyst.net.nz> | 2019-03-14 18:05:23 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-04-08 02:07:23 +0000 |
commit | c9b2a37268e793f2d8a8e3a6a340d2bc869f3f0e (patch) | |
tree | c668d2c3ed1d7db33a513fa9e65651a7e1b58017 /source4 | |
parent | f775606516015715379dd76fa545da7c02c65e45 (diff) | |
download | samba-c9b2a37268e793f2d8a8e3a6a340d2bc869f3f0e.tar.gz |
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>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/schema/schema_set.c | 2 | ||||
-rw-r--r-- | source4/dsdb/schema/schema_syntax.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c index f9f63330e97..b61f170f083 100644 --- a/source4/dsdb/schema/schema_set.c +++ b/source4/dsdb/schema/schema_set.c @@ -33,7 +33,7 @@ /* change this when we change something in our schema code that * requires a re-index of the database */ -#define SAMDB_INDEXING_VERSION "2" +#define SAMDB_INDEXING_VERSION "3" /* override the name to attribute handler function diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index a100f355052..a67ecde222e 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -2541,7 +2541,7 @@ static const struct dsdb_syntax dsdb_syntaxes[] = { .validate_ldb = dsdb_syntax_INT64_validate_ldb, .equality = "integerMatch", .comment = "Large Integer", - .ldb_syntax = LDB_SYNTAX_INTEGER, + .ldb_syntax = LDB_SYNTAX_ORDERED_INTEGER, .auto_normalise = true },{ .name = "String(NT-Sec-Desc)", |