summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clidgram.c5
-rw-r--r--source3/libsmb/dsgetdcname.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index 83e50e553d..41d6916b97 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/libsmb/clidgram.c
@@ -130,7 +130,8 @@ bool send_getdc_request(TALLOC_CTX *mem_ctx,
struct messaging_context *msg_ctx,
struct sockaddr_storage *dc_ss,
const char *domain_name,
- const DOM_SID *sid)
+ const DOM_SID *sid,
+ uint32_t nt_version)
{
struct in_addr dc_ip;
const char *my_acct_name = NULL;
@@ -172,7 +173,7 @@ bool send_getdc_request(TALLOC_CTX *mem_ctx,
s->mailslot_name = my_mailslot;
s->acct_control = ACB_WSTRUST;
s->sid = my_sid;
- s->nt_version = 1;
+ s->nt_version = nt_version;
s->lmnt_token = 0xffff;
s->lm20_token = 0xffff;
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 5af65c5dca..f357e92b9b 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -796,7 +796,8 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
}
if (send_getdc_request(mem_ctx, msg_ctx,
- &dclist[i].ss, domain_name, NULL))
+ &dclist[i].ss, domain_name,
+ NULL, 1))
{
int k;
smb_msleep(100);