ldb_tdb: Refuse to store a value in a unique index that is too long
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 21 Feb 2018 02:19:37 +0000 (15:19 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 3 Mar 2018 04:20:35 +0000 (05:20 +0100)
commitee74d4bb8052bf22dcc3b30abb2493ac9a3237a4
treecbe179db36e1aca71952382667ea3090e0277ee9
parent1d86a0895aab42323e3455b33eb849198b0f7b49
ldb_tdb: Refuse to store a value in a unique index that is too long

Rather than add many special cases, over-long unique values are simply banned.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_tdb/ldb_index.c