summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-05-08 18:32:22 +0200
committerGünther Deschner <gd@samba.org>2008-05-09 14:59:20 +0200
commit67c644aa591c051cfe1e3f3536186ecf0b4449f2 (patch)
treec32fad2091649b7d47c3210bfb08a7b2e2bc791a /source3/lib/netapi
parentc58ab8f3b251f9fbf79fc8a528717e0756c02a76 (diff)
downloadsamba-67c644aa591c051cfe1e3f3536186ecf0b4449f2.tar.gz
samba-67c644aa591c051cfe1e3f3536186ecf0b4449f2.tar.bz2
samba-67c644aa591c051cfe1e3f3536186ecf0b4449f2.zip
dsgetdcname: use existing messaging_context if possible.
Guenther (This used to be commit 7889516a384c155a9045aad4409c041fddd0d98d)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/getdc.c1
-rw-r--r--source3/lib/netapi/joindomain.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/netapi/getdc.c b/source3/lib/netapi/getdc.c
index 38aaf0ef85..c1d021b1d4 100644
--- a/source3/lib/netapi/getdc.c
+++ b/source3/lib/netapi/getdc.c
@@ -118,6 +118,7 @@ WERROR DsGetDcName_l(struct libnetapi_ctx *ctx,
NTSTATUS status;
status = dsgetdcname(ctx,
+ NULL,
r->in.domain_name,
r->in.domain_guid,
r->in.site_name,
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index b7c9fa5acc..66f7cfb13f 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -51,7 +51,7 @@ WERROR NetJoinDomain_l(struct libnetapi_ctx *mem_ctx,
uint32_t flags = DS_DIRECTORY_SERVICE_REQUIRED |
DS_WRITABLE_REQUIRED |
DS_RETURN_DNS_NAME;
- status = dsgetdcname(mem_ctx, r->in.domain,
+ status = dsgetdcname(mem_ctx, NULL, r->in.domain,
NULL, NULL, flags, &info);
if (!NT_STATUS_IS_OK(status)) {
libnetapi_set_error_string(mem_ctx,
@@ -180,7 +180,7 @@ WERROR NetUnjoinDomain_l(struct libnetapi_ctx *mem_ctx,
uint32_t flags = DS_DIRECTORY_SERVICE_REQUIRED |
DS_WRITABLE_REQUIRED |
DS_RETURN_DNS_NAME;
- status = dsgetdcname(mem_ctx, domain,
+ status = dsgetdcname(mem_ctx, NULL, domain,
NULL, NULL, flags, &info);
if (!NT_STATUS_IS_OK(status)) {
libnetapi_set_error_string(mem_ctx,
@@ -360,7 +360,7 @@ WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx,
uint32_t flags = DS_DIRECTORY_SERVICE_REQUIRED |
DS_RETURN_DNS_NAME;
- status = dsgetdcname(ctx, r->in.domain,
+ status = dsgetdcname(ctx, NULL, r->in.domain,
NULL, NULL, flags, &info);
if (!NT_STATUS_IS_OK(status)) {
libnetapi_set_error_string(ctx, "%s",