Bug 151887 - net/samba35: patch-source3__smbd__negprot.c braking smbd and possibly not needed
Summary: net/samba35: patch-source3__smbd__negprot.c braking smbd and possibly not needed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 14:20 UTC by Bartosz Stec
Modified: 2011-02-07 09:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosz Stec 2010-11-02 14:20:08 UTC
After upgrading net/samba33 port, which was obsolete and removed, to net/samba35, I found that multifuntional office devices (like canon IR2270, IR2020i, IR1020i) cannot connect to smb shares anymore, while Windows PC's have no such problems. T

I was also able to connect from Windows using login/password combination used by office machines. Hovewer none of them could connect itself, and smbd logs says:

[2010/11/02 13:30:49.862220,  0] smbd/sesssetup.c:1703(reply_sesssetup_and_X)
  reply_sesssetup_and_X:  Attempted encrypted session setup without negprot denied!

Playing with smb.conf options and google doesn't help, it seems that only some Mac OS X's have similiar problems with latest samba releases. From IR2270 Panel I was able to browse network neighbourhood and FreeBSD based Samba server was visible and accesible. Any try to write scanned file to share ends with error.

Fix: 

While investigating possible causes, I found that removing patch 'patch-source3__smbd__negprot.c', rebuildig and reinstalling port fix this issue. None side effects of patch removal has been seen for now. So I guess that patch brakes protocol negotiations in some cases, and it's possible that it isn't needed at all.
How-To-Repeat: #portinstall net/samba35

then connect from some non-windows device, office equipment talking to SMB preferably.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-02 14:20:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->timur

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 rj 2010-11-02 22:10:04 UTC
Hi,

I had a similar issue with samba35 - please see:
   =
<http://lists.freebsd.org/pipermail/freebsd-ports/2010-October/064273.html=
>

Removing the patch file "patch-source3__smbd__negprot.c" and rebuilding =
samba35 as indicated by Bartosz Stec, resolved also my issue with =
samba35.

By the way, there is another recent report about this issue here:
  =
<http://lists.freebsd.org/pipermail/freebsd-questions/2010-October/223346.=
html>


Bartosz, many thanks for pointing me to the solution!


Best regards

Rolf Jansen
Comment 3 Viktor Štujber 2010-11-13 13:47:58 UTC
Windows 98 is not able to connect either.
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-11-15 13:14:23 UTC
timur       2010-11-15 13:14:19 UTC

  FreeBSD ports repository

  Modified files:
    net/samba35          Makefile 
    net/samba35/files    patch-source3__smbd__negprot.c 
  Added files:
    net/samba35/files    patch-lib__replace__libreplace_macros.m4 
  Log:
  Fix patch for negprot.c to address problems with Windows XP authentication.
  Fixed prototype recognition in the configure script.
  
  PR:             151887
  
  Revision  Changes    Path
  1.4       +5 -4      ports/net/samba35/Makefile
  1.1       +18 -0     ports/net/samba35/files/patch-lib__replace__libreplace_macros.m4 (new)
  1.2       +6 -30     ports/net/samba35/files/patch-source3__smbd__negprot.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Timur I. Bakeyev freebsd_committer freebsd_triage 2011-02-07 09:18:01 UTC
State Changed
From-To: open->closed

Fixed, thanks!