From cbef9c352a43f1ae31326f970b2b3f3334b6593d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Wed, 23 Feb 2011 10:24:34 +0100 Subject: s4:libnet/libnet_samsync_ldb.c - add a "samdb_msg_add_string" wrapper Add this in order to allow the "ADD_OR_DEL" macros to work. Signed-off-by: Andrew Bartlett --- source4/libnet/libnet_samsync_ldb.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source4/libnet/libnet_samsync_ldb.c b/source4/libnet/libnet_samsync_ldb.c index 2832a3f0af6..20f004657be 100644 --- a/source4/libnet/libnet_samsync_ldb.c +++ b/source4/libnet/libnet_samsync_ldb.c @@ -57,6 +57,14 @@ struct samsync_ldb_state { struct samsync_ldb_trusted_domain *trusted_domains; }; +/* This wrapper is needed for the "ADD_OR_DEL" macros */ +static int samdb_msg_add_string(struct ldb_context *sam_ldb, + TALLOC_CTX *mem_ctx, struct ldb_message *msg, + const char *attr_name, const char *str) +{ + return ldb_msg_add_string(msg, attr_name, str); +} + static NTSTATUS samsync_ldb_add_foreignSecurityPrincipal(TALLOC_CTX *mem_ctx, struct samsync_ldb_state *state, struct dom_sid *sid, -- cgit v1.2.1