From b40031e904cb2b68c85f8eda0a920788109f814d Mon Sep 17 00:00:00 2001 From: Yannick Bergeron Date: Mon, 27 Jun 2011 11:46:08 -0400 Subject: [PATCH] NT4 client authentication against Samba server using clear-text password --- source3/smbd/sesssetup.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index dda4ef2..0b4a4d0 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -1453,9 +1453,9 @@ void reply_sesssetup_and_X(struct smb_request *req) req->inbuf, req->flags2, &pass, - req->buf, + ra_type == RA_WINNT ? req->buf + 1 : req->buf, passlen1, - STR_TERMINATE|STR_ASCII); + ra_type == RA_WINNT ? STR_TERMINATE : STR_TERMINATE|STR_ASCII); } else { (void)srvstr_pull_talloc(talloc_tos(), req->inbuf, -- 1.7.0.4