summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-28 12:30:18 +0100
committerGünther Deschner <gd@samba.org>2008-02-28 12:40:55 +0100
commit0d8985f2da43d35d8f940af112ad74a199778dd8 (patch)
tree0ba1d589eb9d490ff47acbf60488232041d148d9 /source3/libnet
parentab83712324646d51570a46c68249108e199aaea3 (diff)
downloadsamba-0d8985f2da43d35d8f940af112ad74a199778dd8.tar.gz
samba-0d8985f2da43d35d8f940af112ad74a199778dd8.tar.bz2
samba-0d8985f2da43d35d8f940af112ad74a199778dd8.zip
Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.
Guenther (This used to be commit b1a4b21f8c35dc23e5c986ebe44d3806055eb39b)
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index d2242ffb2c..623ca39f71 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1315,7 +1315,7 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
#endif /* WITH_ADS */
if (!r->in.dc_name) {
- struct DS_DOMAIN_CONTROLLER_INFO *info;
+ struct netr_DsRGetDCNameInfo *info;
status = dsgetdcname(mem_ctx,
r->in.domain_name,
NULL,
@@ -1333,7 +1333,7 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
}
r->in.dc_name = talloc_strdup(mem_ctx,
- info->domain_controller_name);
+ info->dc_unc);
W_ERROR_HAVE_NO_MEMORY(r->in.dc_name);
}
@@ -1447,7 +1447,7 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
}
if (!r->in.dc_name) {
- struct DS_DOMAIN_CONTROLLER_INFO *info;
+ struct netr_DsRGetDCNameInfo *info;
status = dsgetdcname(mem_ctx,
r->in.domain_name,
NULL,
@@ -1465,7 +1465,7 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
}
r->in.dc_name = talloc_strdup(mem_ctx,
- info->domain_controller_name);
+ info->dc_unc);
W_ERROR_HAVE_NO_MEMORY(r->in.dc_name);
}