summaryrefslogtreecommitdiff
path: root/source3/winbindd
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/winbindd
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/winbindd')
-rw-r--r--source3/winbindd/winbindd_locator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/winbindd/winbindd_locator.c b/source3/winbindd/winbindd_locator.c
index 6b1cff99e0..10a6c5afeb 100644
--- a/source3/winbindd/winbindd_locator.c
+++ b/source3/winbindd/winbindd_locator.c
@@ -58,7 +58,7 @@ static enum winbindd_result dual_dsgetdcname(struct winbindd_domain *domain,
struct winbindd_cli_state *state)
{
NTSTATUS result;
- struct DS_DOMAIN_CONTROLLER_INFO *info = NULL;
+ struct netr_DsRGetDCNameInfo *info = NULL;
const char *dc = NULL;
state->request.domain_name
@@ -74,15 +74,15 @@ static enum winbindd_result dual_dsgetdcname(struct winbindd_domain *domain,
return WINBINDD_ERROR;
}
- if (info->domain_controller_address) {
- dc = info->domain_controller_address;
+ if (info->dc_address) {
+ dc = info->dc_address;
if ((dc[0] == '\\') && (dc[1] == '\\')) {
dc += 2;
}
}
- if ((!dc || !is_ipaddress_v4(dc)) && info->domain_controller_name) {
- dc = info->domain_controller_name;
+ if ((!dc || !is_ipaddress_v4(dc)) && info->dc_unc) {
+ dc = info->dc_unc;
}
if (!dc || !*dc) {