git.samba.org
/
gd
/
samba
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.
[gd/samba/.git]
/
source
/
winbindd
/
winbindd_locator.c
diff --git
a/source/winbindd/winbindd_locator.c
b/source/winbindd/winbindd_locator.c
index 6b1cff99e09fe34b52b8fed62a13bc2dce3c9247..10a6c5afeb8d546f961163dbd2fe4de0514b015e 100644
(file)
--- a/
source/winbindd/winbindd_locator.c
+++ b/
source/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 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
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;
}
return WINBINDD_ERROR;
}
- if (info->d
omain_controller
_address) {
- dc = info->d
omain_controller
_address;
+ if (info->d
c
_address) {
+ dc = info->d
c
_address;
if ((dc[0] == '\\') && (dc[1] == '\\')) {
dc += 2;
}
}
if ((dc[0] == '\\') && (dc[1] == '\\')) {
dc += 2;
}
}
- if ((!dc || !is_ipaddress_v4(dc)) && info->d
omain_controller_name
) {
- dc = info->d
omain_controller_name
;
+ if ((!dc || !is_ipaddress_v4(dc)) && info->d
c_unc
) {
+ dc = info->d
c_unc
;
}
if (!dc || !*dc) {
}
if (!dc || !*dc) {