summaryrefslogtreecommitdiff
path: root/source3/utils
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/utils
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/utils')
-rw-r--r--source3/utils/net_lookup.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index 8c01b5b4ba..e5d83bc891 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -366,8 +366,9 @@ static int net_lookup_dsgetdcname(int argc, const char **argv)
const char *domain_name = NULL;
char *site_name = NULL;
uint32_t flags = 0;
- struct DS_DOMAIN_CONTROLLER_INFO *info = NULL;
+ struct netr_DsRGetDCNameInfo *info = NULL;
TALLOC_CTX *mem_ctx;
+ char *s = NULL;
if (argc < 1 || argc > 3) {
d_printf("usage: net lookup dsgetdcname "
@@ -410,7 +411,9 @@ static int net_lookup_dsgetdcname(int argc, const char **argv)
return -1;
}
- display_ds_domain_controller_info(mem_ctx, info);
+ s = NDR_PRINT_STRUCT_STRING(mem_ctx, netr_DsRGetDCNameInfo, info);
+ printf("%s\n", s);
+ TALLOC_FREE(s);
SAFE_FREE(site_name);
TALLOC_FREE(mem_ctx);