summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-02-23 10:24:34 +0100
committerAndrew Bartlett <abartlet@samba.org>2011-03-01 06:29:03 +0100
commitcbef9c352a43f1ae31326f970b2b3f3334b6593d (patch)
treee56d9a93668a670a88fc322adaf84b9a26d08bcf /source4/libnet
parentc66780332bba2270ada4391fbb88728d06b94119 (diff)
downloadsamba-cbef9c352a43f1ae31326f970b2b3f3334b6593d.tar.gz
samba-cbef9c352a43f1ae31326f970b2b3f3334b6593d.tar.bz2
samba-cbef9c352a43f1ae31326f970b2b3f3334b6593d.zip
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 <abartlet@samba.org>
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_samsync_ldb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/libnet/libnet_samsync_ldb.c b/source4/libnet/libnet_samsync_ldb.c
index 2832a3f0af..20f004657b 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,