summaryrefslogtreecommitdiffstats
path: root/source/libsmb/dsgetdcname.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/libsmb/dsgetdcname.c')
-rw-r--r--source/libsmb/dsgetdcname.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/libsmb/dsgetdcname.c b/source/libsmb/dsgetdcname.c
index de647ad8bf5..1bd54d80e6e 100644
--- a/source/libsmb/dsgetdcname.c
+++ b/source/libsmb/dsgetdcname.c
@@ -784,6 +784,9 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
fstring tmp_dc_name;
struct messaging_context *msg_ctx = msg_context(mem_ctx);
struct nbt_ntlogon_packet *reply = NULL;
+ uint32_t nt_version = NETLOGON_VERSION_1 |
+ NETLOGON_VERSION_5 |
+ NETLOGON_VERSION_5EX_WITH_IP;
if (flags & DS_PDC_REQUIRED) {
name_type = NBT_NAME_PDC;
@@ -802,7 +805,7 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
if (send_getdc_request(mem_ctx, msg_ctx,
&dclist[i].ss, domain_name,
- NULL, 11))
+ NULL, nt_version))
{
int k;
smb_msleep(100);