diff options
author | Günther Deschner <gd@samba.org> | 2008-09-27 03:11:33 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-09 12:37:18 +0200 |
commit | 4e04c5ae1bb7ade41c0b28bbf9ec7cdb4930d9ae (patch) | |
tree | 18621586c7457ed41554a0e1c99f1ead22f86892 | |
parent | 76a8da6f711ce13de6c4e3e1af6714b0475b71f5 (diff) | |
download | samba-4e04c5ae1bb7ade41c0b28bbf9ec7cdb4930d9ae.tar.gz samba-4e04c5ae1bb7ade41c0b28bbf9ec7cdb4930d9ae.tar.bz2 samba-4e04c5ae1bb7ade41c0b28bbf9ec7cdb4930d9ae.zip |
wbinfo: fix dsgetdcname caller.
Guenther
-rw-r--r-- | source3/nsswitch/wbinfo.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index 60524d1d1b..fc49be4314 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/nsswitch/wbinfo.c @@ -538,8 +538,8 @@ static bool wbinfo_dsgetdcname(const char *domain_name, uint32_t flags) ZERO_STRUCT(request); ZERO_STRUCT(response); - fstrcpy(request.domain_name, domain_name); - request.flags = flags; + fstrcpy(request.data.dsgetdcname.domain_name, domain_name); + request.data.dsgetdcname.flags = flags; request.flags |= DS_DIRECTORY_SERVICE_REQUIRED; @@ -553,7 +553,15 @@ static bool wbinfo_dsgetdcname(const char *domain_name, uint32_t flags) /* Display response */ - d_printf("%s\n", response.data.dc_name); + d_printf("%s\n", response.data.dsgetdcname.dc_unc); + d_printf("%s\n", response.data.dsgetdcname.dc_address); + d_printf("%d\n", response.data.dsgetdcname.dc_address_type); + d_printf("%s\n", response.data.dsgetdcname.domain_guid); + d_printf("%s\n", response.data.dsgetdcname.domain_name); + d_printf("%s\n", response.data.dsgetdcname.forest_name); + d_printf("0x%08x\n", response.data.dsgetdcname.dc_flags); + d_printf("%s\n", response.data.dsgetdcname.dc_site_name); + d_printf("%s\n", response.data.dsgetdcname.client_site_name); return true; } |