From: Günther Deschner Date: Thu, 24 Apr 2008 19:28:03 +0000 (+0200) Subject: mailslot: allow to define nt_version in send_getdc_request(). X-Git-Tag: samba-3.3.0pre1~1470 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce3728191b23badfd5eb92701e4cebf84273b61e;p=thirdparty%2Fsamba.git mailslot: allow to define nt_version in send_getdc_request(). Guenther --- diff --git a/source/libsmb/clidgram.c b/source/libsmb/clidgram.c index 83e50e553da..41d6916b97e 100644 --- a/source/libsmb/clidgram.c +++ b/source/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/source/libsmb/dsgetdcname.c b/source/libsmb/dsgetdcname.c index 5af65c5dcaa..f357e92b9bc 100644 --- a/source/libsmb/dsgetdcname.c +++ b/source/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); diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c index 822f946e1a2..863df6ec112 100644 --- a/source/winbindd/winbindd_cm.c +++ b/source/winbindd/winbindd_cm.c @@ -1093,7 +1093,7 @@ static bool dcip_to_name(TALLOC_CTX *mem_ctx, /* try GETDC requests next */ if (send_getdc_request(mem_ctx, winbind_messaging_context(), - pss, domain->name, &domain->sid)) { + pss, domain->name, &domain->sid, 1)) { const char *dc_name = NULL; int i; smb_msleep(100);