Bug 723740 - 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 WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: samba
Version: 5.6
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Guenther Deschner
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-21 00:23 UTC by Akemi Yagi
Modified: 2011-09-27 14:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 651722
Environment:
Last Closed: 2011-09-27 14:12:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Akemi Yagi 2011-07-21 00:23:21 UTC
+++ This bug was initially created as a clone of Bug #651722 +++

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.

--- Additional comment from giulioo on 2010-11-10 12:13:50 EST ---

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.

--- Additional comment from gdeschner on 2010-11-10 12:26:37 EST ---

(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 ?

--- Additional comment from giulioo on 2010-11-10 13:11:29 EST ---

Yes, sorry for the confusion
 client use spnego = no

--- Additional comment from ekopalov on 2010-12-15 03:41:54 EST ---


    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.

--- Additional comment from errata-xmlrpc on 2011-01-13 17:48:33 EST ---

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

Comment 1 Akemi Yagi 2011-07-21 00:27:06 UTC
The patch that fixed the bug has been applied to samba33 but not samba. In RHEL 5.6, samba still suffers from this bug. The proposed workaround "client use spnego = no" works for samba.

$ rpm -q samba
samba-3.0.33-3.29.el5_6.2.x86_64

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

Comment 2 Dmitri Pal 2011-09-27 14:12:54 UTC
The issue is addressed in samba3x package. With the presence of the workaround there is no plan to fix it in samba component.


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