summaryrefslogtreecommitdiff
path: root/source4/lib/com/dcom
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-07 02:14:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:59 -0500
commitd892500e733fa2c85f950b69f11546c0f037a25a (patch)
treed6fc1108c26b0f7fdfaf709393d8e2aaf0f188ef /source4/lib/com/dcom
parentdd2aefd56b0968da8b1c4d055bc8c2f30382fb23 (diff)
downloadsamba-d892500e733fa2c85f950b69f11546c0f037a25a.tar.gz
samba-d892500e733fa2c85f950b69f11546c0f037a25a.tar.bz2
samba-d892500e733fa2c85f950b69f11546c0f037a25a.zip
r5676: Fix some alignment issues and IRemoteActivation
(This used to be commit a9b13f67012d235d98920e639f59411d57a79bd7)
Diffstat (limited to 'source4/lib/com/dcom')
-rw-r--r--source4/lib/com/dcom/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/com/dcom/main.c b/source4/lib/com/dcom/main.c
index 853af4c739..7c9c3b4394 100644
--- a/source4/lib/com/dcom/main.c
+++ b/source4/lib/com/dcom/main.c
@@ -30,6 +30,16 @@
#define DCOM_NEGOTIATED_PROTOCOLS { EPM_PROTOCOL_TCP, EPM_PROTOCOL_SMB, EPM_PROTOCOL_NCALRPC }
+struct dcom_client_context *dcom_client_init(struct com_context *ctx, const char *domain, const char *user, const char *password)
+{
+ ctx->dcom = talloc(ctx, struct dcom_client_context);
+ ctx->dcom->domain = domain;
+ ctx->dcom->user = user;
+ ctx->dcom->password = password;
+
+ return ctx->dcom;
+}
+
static NTSTATUS dcerpc_binding_from_STRINGBINDING(TALLOC_CTX *mem_ctx, struct dcerpc_binding *b, struct STRINGBINDING *bd)
{
char *host, *endpoint;