From 9307940876a6c226969e9169d55c0408cd7ab032 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Wed, 21 Oct 1998 01:35:01 +0000 Subject: fixing smbd encrypted rpcs (data lens, alloc hints, sequence nums argh). 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. (This used to be commit c101113ec20ed0ba633e78e4ee45596cdccaf1b5) --- source3/nmbd/nmbd_processlogon.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/nmbd/nmbd_processlogon.c') diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c index 89b7e0e647..5495697c8f 100644 --- a/source3/nmbd/nmbd_processlogon.c +++ b/source3/nmbd/nmbd_processlogon.c @@ -55,6 +55,8 @@ void process_logon_packet(struct packet_struct *p,char *buf,int len, char *unicomp; /* Unicode computer name. */ struct smb_passwd *smb_pass; /* To check if machine account exists */ + memset(outbuf, 0, sizeof(outbuf)); + if (!lp_domain_logons()) { DEBUG(3,("process_logon_packet: Logon packet received from IP %s and domain \ @@ -137,7 +139,9 @@ 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 */ @@ -151,7 +155,9 @@ 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", -- cgit