took out Lukes change as it breaks domain logons for Win95 clients
authorAndrew Tridgell <tridge@samba.org>
Sat, 31 Oct 1998 07:38:50 +0000 (07:38 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 31 Oct 1998 07:38:50 +0000 (07:38 +0000)
(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.
(This used to be commit a2bacc08955ba61aac4b45b63a54b279e5776261)

source3/nmbd/nmbd_processlogon.c

index 5495697c8f4570e0fde6edee3ae756f8bd347752..3f519ecfc94d4247368e0813fe9d65945fe82663 100644 (file)
@@ -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",