lib/ldb: add schema based ldb_val comparison and ldb_msg_element search routines
Based on an earlier patch by Matthias Dieter Wallnöfer <mdw@samba.org>
This is necessary to perform correct schema enforcement, because we
must enforce uniquiness based on the schema matching rules.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=7485
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8929
Andrew Bartlett
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>