From owner-freebsd-ports Tue Aug 28 15:51: 7 2001 Delivered-To: freebsd-ports@freebsd.org Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by hub.freebsd.org (Postfix) with ESMTP id D57A637B407; Tue, 28 Aug 2001 15:50:50 -0700 (PDT) (envelope-from stephen@shepherdbusinessgroup.com) Received: from [209.224.32.1] (helo=shepherdbusinessgroup.com) by hermes.pressenter.com with esmtp (Exim 3.16 #1) id 15brh2-0004cb-00; Tue, 28 Aug 2001 17:50:49 -0500 Message-ID: <3B8C20A0.5060302@shepherdbusinessgroup.com> Date: Tue, 28 Aug 2001 17:52:16 -0500 From: Stephen Hilton User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.3) Gecko/20010808 X-Accept-Language: en-us MIME-Version: 1.0 To: dwcjr@FreeBSD.org Cc: ports@FreeBSD.org Subject: FreeBSD Port: samba-devel-2.2.1a Content-Type: multipart/mixed; boundary="------------040506090201000500070409" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------040506090201000500070409 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Regarding the problem with Samba 2.2.1a SWAT authentication on FreeBSD, "Swat problem - 401 Bad Authorization" I have found a possible fix through the FreeBSD-questions and Samba mailing lists. I have added this patch file to my samba-devel port (ver 2.2.1a) and deinstalled/reinstalled my Samba server. All seems O.K. but I am not a C programmer, and do not know if this "fix" could break someting else. The file I modified is include/config.h.in all I did is place C style comments around this line #172: /* #undef HAVE_TRUNCATED_SALT */ Following is some email correspondence regarding this issue, and attached is a gzipped file called patch-bc.gz that contains the patch I created using "diff --unified" --------------------snip--------------------- Joel, You compiled and installed from source, did not use the FreeBSD port? Yes If so would my fix be correct to make a patch for the port - does config.h come from config.h.in through ./configure Yes it does. I just verified this by starting once again with fresh source and I made the changes you described to config.h.in. After I did a ./configure it remained commented out. So your changes would be correct. and by my commenting out the line: > #undef HAVE_TRUNCATED_SALT > to > /* #undef HAVE_TRUNCATED_SALT */ achive the same result, or is there a correct/better way to do it. My C skills are somewhat non-existent. Thanks, Stephen Hilton > -----Original Message----- > From: Gudknecht, Joel [mailto:Joel.Gudknecht@Honeywell.com] > Sent: Tuesday, August 28, 2001 1:55 PM > To: nospam@hiltonbsd.com > Subject: RE: FreeBSD 4.3 and Samba 2.2.1a > > > I started with clean source, I did a ./configure, then I edited > samba-2.2.1a/source/include/config.h > > The line reads as this in config.h: > > #define HAVE_TRUNCATED_SALT 1 > > and I changed it to: > > /* #undef HAVE_TRUNCATED_SALT 1 */ > > > > >>> Stephen Hilton 08/28/01 09:50AM >>> > Joel, > > Did you edit ./samba-2.2.1a/source/include/config.h.in > and change: > > #undef HAVE_TRUNCATED_SALT > to > /* #undef HAVE_TRUNCATED_SALT */ > > I have looked at this further and find the directions from the > mailing list > slightly misleading. > > Please confirm your steps to correct, and I will post a correction to the > list. > > Thanks, > > Stephen Hilton > > > > -----Original Message----- > > From: Gudknecht, Joel [mailto:Joel.Gudknecht@Honeywell.com] > > Sent: Tuesday, August 28, 2001 10:15 AM > > To: nospam@hiltonbsd.com > > Subject: Re: FreeBSD 4.3 and Samba 2.2.1a > > > > > > Thank you very much, it worked! > > > > >>> Stephen Hilton 08/27/01 07:14PM >>> > > Copied verbatim from the archives at MARC: > > > > --------------------snip-------------------------- > > List: samba > > Subject: Re: Swat problem - 401 Bad Authorization > > From: Matt Penna > > Date: 2001-08-17 15:06:58 > > > > > > [Download message RAW] > > > > At 09:22 AM 8/17/01 -0500, Gerald Carter wrote: > > >On Thu, 16 Aug 2001, Matt Penna wrote: > > > > > > > I have installed Samba 2.2.1a on a system with FreeBSD 4.3-RELEASE. > > Samba > > > > was compiled from source, configure script was run with no > > command line > > > > options. The FreeBSD box is cleanly installed with a generic kernel. > > (This > > > > problem also occurs on FreeBSD 4.2-RELEASE.) If I compile > and install > > > > Samba 2.0.9 on the system, swat works as expected. As soon as > > I install > > > > 2.2.1a, it breaks. > > > > > >You may need to comment out '#define HAVE_TRUNCATED_SALT 1' > > >out of include/config.h and recompile. It was a bug in out autoconf > > >script. > > > > Jerry, > > > > This seems to have worked perfectly! Problem disappeared immediately. > > > > Thanks very much! :) > > > > Matt > > > > > > > > -- > > Matt Penna soba@usagiyojimbo.com mdp1261@rit.edu > > ICQ: 399825 S0ba on AOLIM > > "The trouble with computers, of course, is > > that they're very sophisticated idiots." -Dr. Who > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > > > > --------------------snip-------------------------- > > > > > > --------------------------snip------------------------- Thanks for the great ports system, I almost never use packages since getting more familiar with how ports work. Sincerely, Stephen Hilton --------------040506090201000500070409 Content-Type: application/octet-stream; name="patch-bc.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-bc.gz" H4sICOn6izsAA3BhdGNoLWJjAHWOy2rDMBBF1/FXDHQX1w+Zpom9sipPGrWyLCS5dDeLxHEN wYaC/78pgdL0sRo4h3vvRFEEw7g/zYcu2U/jcejjt3gY4+l96Bf1NMLTfALIgeUFy4pVDlma siAMw79SCz93wOcesg2wVZGyIt1cAmUJEVtnt2sIL6csA7iZx0N3hB1/QaqxduivmfNWcIei Nr94KzxV0qL293dB9F2enRbcY0WOKx+EyRL+17BMvqofbPOMmrR0RrWOpBaqrZC2UqG73rdG EG/9jtDaxpJo9FZJ8eN5fDVnKD0pbh/xs4Vca0xjffABL7MTlXQBAAA= --------------040506090201000500070409-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message