Date: Sun, 19 Jun 2011 11:15:21 +0100 From: Chris Rees <crees@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/158022: [PATCH] Fix port: net/samba35 Breaks with Windows Update Message-ID: <BLU0-SMTP970F0EB5F96B8724008E94A96F0@phx.gbl> Resent-Message-ID: <201106191020.p5JAK8Tt067091@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158022 >Category: ports >Synopsis: [PATCH] Fix port: net/samba35 Breaks with Windows Update >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 19 10:20:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Chris Rees >Release: FreeBSD 8.2-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD zeus.bayofrum.net 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: Sat Apr 30 15:09:06 BST 2011 root@zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386 >Description: https://bugzilla.samba.org/show_bug.cgi?id=8238 This patch is from the above bug -- a recent Windows Update broke Samba when using plaintext passwords. >How-To-Repeat: >Fix: New file files/patch-source3-smbd-negprot-c --- samba-ms-fix.diff begins here --- Index: Makefile =================================================================== RCS file: /exports/cvsroot-freebsd/ports/net/samba35/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- Makefile 25 Feb 2011 01:32:01 -0000 1.6 +++ Makefile 19 Jun 2011 09:20:21 -0000 @@ -7,7 +7,7 @@ PORTNAME= ${SAMBA_BASENAME}35 PORTVERSION= 3.5.6 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES?= net MASTER_SITES= ${MASTER_SITE_SAMBA} MASTER_SITE_SUBDIR= . old-versions rc pre Index: files/patch-source3-smbd-negprot-c =================================================================== RCS file: files/patch-source3-smbd-negprot-c diff -N files/patch-source3-smbd-negprot-c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-source3-smbd-negprot-c 19 Jun 2011 09:20:21 -0000 @@ -0,0 +1,26 @@ +From 0b0c5596034a007b71785a0f36aaf40cf74b234d Mon Sep 17 00:00:00 2001 +From: Volker Lendecke <vl@samba.org> +Date: Thu, 16 Jun 2011 22:20:49 +0200 +Subject: [PATCH] s3: Fix bug 8238 -- KB2536276 prevents access to shares + +Without this we were not sending the workgroup name in the negprot reply if +plain text passwords are used. +--- + source3/smbd/negprot.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c +index 81d29d9..51ad80d 100644 +--- a/source3/smbd/negprot.c ++++ b/source3/smbd/negprot.c +@@ -382,6 +382,7 @@ static void reply_nt1(struct smb_request *req, uint16 choice) + reply_nterror(req, NT_STATUS_NO_MEMORY); + return; + } ++ p += ret; + DEBUG(3,("not using SPNEGO\n")); + } else { + DATA_BLOB spnego_blob = negprot_spnego(); +-- +1.5.6.5 + --- samba-ms-fix.diff ends here --- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU0-SMTP970F0EB5F96B8724008E94A96F0>