oh dear, it's this one again. removed check for MAILSLOT\NTLOGON because
authorLuke Leighton <lkcl@samba.org>
Tue, 9 Mar 1999 01:20:08 +0000 (01:20 +0000)
committerLuke Leighton <lkcl@samba.org>
Tue, 9 Mar 1999 01:20:08 +0000 (01:20 +0000)
it's wrong.  i've seen a packet from nt client on MAILSLOT\NETLOGON
with appended undocumented unicode tacked on the end and the response
contained undocumented unicode tacked on the end.

source/nmbd/nmbd_processlogon.c

index 98ce8a680a0bb6aace3a4b9fe2ed57a771090152..5b8e01f5d0ead145326c62888f9bf398f77bdae5 100644 (file)
@@ -136,20 +136,18 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
       fstrcpy(q, reply_name);
       q = skip_string(q, 1); /* PDC name */
 
-      if (strcmp(mailslot, NT_LOGON_MAILSLOT)==0) {
-        q = align2(q, buf);
-
-       /* PDC and domain name */
-        q = ascii_to_unibuf(q, my_name, outbuf+sizeof(outbuf)-q-2);
-        q = ascii_to_unibuf(q, global_myworkgroup, outbuf+sizeof(outbuf)-q-2);
-
-        SIVAL(q, 0, ntversion);
-        q += 4;
-        SSVAL(q, 0, lmnttoken);
-        q += 2;
-        SSVAL(q, 0, lm20token);
-        q += 2;
-      }
+      q = align2(q, buf);
+
+      /* PDC and domain name */
+      q = ascii_to_unibuf(q, my_name, outbuf+sizeof(outbuf)-q-2);
+      q = ascii_to_unibuf(q, global_myworkgroup, outbuf+sizeof(outbuf)-q-2);
+
+      SIVAL(q, 0, ntversion);
+      q += 4;
+      SSVAL(q, 0, lmnttoken);
+      q += 2;
+      SSVAL(q, 0, lm20token);
+      q += 2;
 
       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",