diff options
author | Luke Leighton <lkcl@samba.org> | 1999-03-09 01:20:08 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-03-09 01:20:08 +0000 |
commit | 74c7d626cd85189c902489d220c3eca30a4b1bb1 (patch) | |
tree | fdd914c122cbf61e585990bc21e7b9d8c3b59b1f | |
parent | a32a6f64b187e82f88eaccb6a2a88902be5cc4e0 (diff) | |
download | samba-74c7d626cd85189c902489d220c3eca30a4b1bb1.tar.gz samba-74c7d626cd85189c902489d220c3eca30a4b1bb1.tar.xz samba-74c7d626cd85189c902489d220c3eca30a4b1bb1.zip |
oh dear, it's this one again. removed check for MAILSLOT\NTLOGON because
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.
-rw-r--r-- | source/nmbd/nmbd_processlogon.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c index 98ce8a680a0..5b8e01f5d0e 100644 --- a/source/nmbd/nmbd_processlogon.c +++ b/source/nmbd/nmbd_processlogon.c @@ -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", |