Bug 6419 - "smbclient -L" displays "netbios name" instead of "workgroup"
Summary: "smbclient -L" displays "netbios name" instead of "workgroup"
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.0.23c
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
Depends on:
Reported: 2009-05-28 12:06 UTC by Michael Wu
Modified: 2009-06-03 10:29 UTC (History)
0 users

See Also:

Patch for 3.3 and 3.2 (1.70 KB, patch)
2009-06-01 15:56 UTC, Jeremy Allison
no flags Details
Patch for 3.4/master (1.57 KB, patch)
2009-06-01 15:57 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Wu 2009-05-28 12:06:44 UTC
In a samba 3 Linux environment, "smbclient -L" displays "Domain=[netbios name] OS=[Unix] Server=[Samba 3.0.23c-2]" instead of "Domain=[workgroup] OS=[Unix] Server=[Samba 3.0.23c-2]". But in a samba 2 Linux environment, "smbclient -L" displays "Domain=[workgroup] OS=[Unix] Server=[Samba 2.2.7-security-rollup-fix]" and "smbclient -L <samba 3 server>" displays "Domain=[workgroup] OS=[Unix] Server=[Samba 3.0.23c-2]". Please check to see what makes the difference. Thanks.

Tested with:
Samba 3.0.23c on Fedora Core 6
Samba 2.2.7 on Redhat 7.3
Comment 1 Michael Wu 2009-06-01 06:45:46 UTC
One more thing to add on: if we use smbclient anonymously, then Domain will show workgroup as expected. Thanks.
Comment 2 Jeremy Allison 2009-06-01 15:56:12 UTC
Created attachment 4228 [details]
Patch for 3.3 and 3.2

This fixes the problem for me in 3.2/3.3.
Comment 3 Jeremy Allison 2009-06-01 15:57:08 UTC
Created attachment 4229 [details]
Patch for 3.4/master

This fixes the problem for me in master/3.4.
Comment 4 Jeremy Allison 2009-06-01 15:58:15 UTC
I'll probably check this fix into 3.4 and above, as it's not a high enough priority fix to be backported to 3.3 or 3.2. However I'm providing the patch for those releases in case you want to use it yourself.
Thanks for reporting the bug !
Comment 5 Michael Wu 2009-06-03 10:29:08 UTC
Thank you for your response and patches. I'll try to find how to apply the patch to the samba rpm package ( The version of samba used in Fedora 10 is 3.2 ). Thank you once again for your sincere assistance.