TODO COMMIT MESSAGE ldb_mdb: Apply LMDB key length restrictions at key-value layer
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 6 Mar 2018 02:27:51 +0000 (15:27 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Apr 2018 14:27:17 +0000 (16:27 +0200)
commit576825828ef6463b488b3c84c7dfb64e609de1a6
tree5ac73b41c4a15f6bfaef926a53cf854c8a6b1db4
parentb544b8ac9c4b6c4cedd189fcdfdd6403b034bee5
TODO COMMIT MESSAGE ldb_mdb: Apply LMDB key length restrictions at key-value layer

We need to enforce the GUID index mode so end-users do not get a supprise
in mid-operation and we enforce a max key length of 511 so that the
index key trunctation is done correctly.

Otherwise the DB will appear to work until a very long key (DN or index)
is used, after which it will be sad.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_mdb/ldb_mdb.c
lib/ldb/tests/ldb_lmdb_test.c