From 9deb650fa2b93338ca91ccc96a940d670d29cbee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 17 Apr 2012 14:01:08 +1000 Subject: ldb: added ldb_msg_element_equal_ordered() this gives us a order sensitive msg element comparison. We need this to allow dbcheck to fix the order of objectClass attributes. --- lib/ldb/include/ldb_module.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ldb/include') diff --git a/lib/ldb/include/ldb_module.h b/lib/ldb/include/ldb_module.h index 4ecddc4ab1..389e8cef71 100644 --- a/lib/ldb/include/ldb_module.h +++ b/lib/ldb/include/ldb_module.h @@ -359,4 +359,9 @@ int ldb_parse_tree_walk(struct ldb_parse_tree *tree, int (*callback)(struct ldb_parse_tree *tree, void *), void *private_context); +/* compare two message elements with ordering - used by modify */ +bool ldb_msg_element_equal_ordered(const struct ldb_message_element *el1, + const struct ldb_message_element *el2); + + #endif -- cgit