From: Andrew Tridgell Date: Sat, 31 Oct 1998 07:38:50 +0000 (+0000) Subject: took out Lukes change as it breaks domain logons for Win95 clients X-Git-Tag: samba-2.2.5pre1~5229 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=a2bacc08955ba61aac4b45b63a54b279e5776261 took out Lukes change as it breaks domain logons for Win95 clients (ie. it breaks Sues machine). Luke, your comment was: put unicode strings after SAMLOGON query regardless of whether it's an NT mailslot or a non-NT mailslot, after having observed this behaviour out of NT machines. perhaps you could post the relevant tcpdump or netmon capture so we can see what is going on? I suspect that what you saw isn't exactly what the win95 boxes are generating. Maybe you saw a GETDCxxx instead of a GETDC000 ? Maybe we need a switch based on the GETDC request type? We won't know unless we see sniffs. --- diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c index 5495697c8f4..3f519ecfc94 100644 --- a/source/nmbd/nmbd_processlogon.c +++ b/source/nmbd/nmbd_processlogon.c @@ -139,9 +139,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) )); fstrcpy(q, reply_name); q = skip_string(q, 1); /* PDC name */ -#if 0 if (strcmp(mailslot, NT_LOGON_MAILSLOT)==0) { -#endif q = align2(q, buf); PutUniCode(q, my_name); /* PDC name */ @@ -155,9 +153,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) )); q += 2; SSVAL(q, 0, lm20token); q += 2; -#if 0 } -#endif DEBUG(3,("process_logon_packet: GETDC request from %s at IP %s, \ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n",