From 54ea4b17f06a6f2fb343111be22f28191d21fdf1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 7 Dec 2009 15:27:43 +1100 Subject: s4:ldb Add a function to match a message against an objectClass (as objectClass will always be a case insensitive ascii string, we can make a much simpler match function here than for the general case). Andrew Bartlett --- source4/lib/ldb/include/ldb_module.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/lib/ldb/include') diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h index 7c18683201..0b0f863fec 100644 --- a/source4/lib/ldb/include/ldb_module.h +++ b/source4/lib/ldb/include/ldb_module.h @@ -126,6 +126,9 @@ int ldb_match_msg(struct ldb_context *ldb, struct ldb_dn *base, enum ldb_scope scope); +int ldb_match_msg_objectclass(const struct ldb_message *msg, + const char *objectclass); + /* The following definitions come from lib/ldb/common/ldb_modules.c */ struct ldb_module *ldb_module_new(TALLOC_CTX *memctx, -- cgit