Bug 651722 - All samba versions before 3.5.6 fail to "smbclient" to Win7 with Live Essentials
Summary: All samba versions before 3.5.6 fail to "smbclient" to Win7 with Live Essentials
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: samba3x
Version: 5.5
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Guenther Deschner
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 651947 654018
TreeView+ depends on / blocked
 
Reported: 2010-11-10 07:44 UTC by giulioo
Modified: 2018-11-14 16:03 UTC (History)
4 users (show)

Fixed In Version: samba3x-3.5.4-0.70.el5
Doc Type: Bug Fix
Doc Text:
Samba could have failed to connect to workstations running Windows 7 with Live Essentials installed due to a spnego parsing failure. With this update, the connection succeeds.
Clone Of:
: 651947 654018 723740 (view as bug list)
Environment:
Last Closed: 2011-01-13 22:48:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
spnego patch for 3.0.x (2.34 KB, application/octet-stream)
2010-11-10 07:44 UTC, giulioo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0054 0 normal SHIPPED_LIVE samba3x bug fix and enhancement update 2011-01-12 17:15:21 UTC

Description giulioo 2010-11-10 07:44:09 UTC
Created attachment 459350 [details]
spnego patch for 3.0.x

Description of problem:
But for 3.5.6, all samba versions have a serious issue when dealing with Win7 machines with Live Essentials installed: cannot smbclient them due to spnego failure.

Version-Release number of selected component (if applicable):
All samba versions. First working version is 3.5.6.

How reproducible:
Always

Steps to Reproduce:
1) Install a Win7 machine, all updates
2) Verify that you can "smbclient" it correctly
3) On Win7, install one of the Live Essentials app (ie: mail)
4) Verify that you cannot "smbclient" it anymore

$ smbclient '\\win7\share' -Uuser%pass -c 'put file'
session setup failed: SUCCESS - 0
$

$ smbclient -d 3 '\\win7\share' -Uuser%pass -c 'put file'
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
....
Connecting to x.x.x.x at port 445
Doing spnego session setup (blob length=336)
SPNEGO login failed: Invalid parameter
session setup failed: SUCCESS - 0
  
Actual results:
spnego failure

Expected results:
smbclient should show shares or put files to shares w/o any error.

Additional info:
See
https://bugzilla.samba.org/show_bug.cgi?id=7577

Note that with the latest updates to Live Essentials you cannot uninstall a single component "Sign-in assistant" anymore, it's all or nothing.
Since Win7 ships w/o a mail client, many users will install Live Essentials Mail which is free.

The 3.5.6 patch can be applied to 3.0.x with some massaging.
I'm attaching what I'm using, I made this patch by trial and error since I don't understand samba code at all.

I don't have access to 5.6 beta, but reading the release notes I find nothing suggesting a samba update; the release notes of 6.0beta talk about 3.5.4, that would be defective too.

Comment 2 giulioo 2010-11-10 17:13:50 UTC
I forgot to add:

1) obviously you can work-around the issue by using
 client use spnego = yes
but this may cause other problems down the line when accessing shares on Windows domains which may require spnego.

2) I marked this as high severity mainly because printing to Win7 shared printers won't work anymore.

Comment 3 Guenther Deschner 2010-11-10 17:26:37 UTC
(In reply to comment #2)
> I forgot to add:
> 
> 1) obviously you can work-around the issue by using
>  client use spnego = yes

You mean "client use spnego = no" here, right ?

Comment 4 giulioo 2010-11-10 18:11:29 UTC
Yes, sorry for the confusion
 client use spnego = no

Comment 10 Eva Kopalova 2010-12-15 08:41:54 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Samba could have failed to connect to workstations running Windows 7 with Live Essentials installed due to a spnego parsing failure. With this update, the connection succeeds.

Comment 12 errata-xmlrpc 2011-01-13 22:48:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0054.html


Note You need to log in before you can comment on or make changes to this bug.