[Bug 1505590] Re: netbios name truncating doesn't work
Andreas Hasenack
andreas at canonical.com
Thu Sep 28 14:57:00 UTC 2017
I believe this is working correctly in the current version in trusty:
2:4.3.11+dfsg-0ubuntu0.14.04.12
- testparm warns about it:
# testparm -s
Load smb config files from /etc/samba/smb.conf
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
WARNING: The 'netbios name' is too long (max. 15 chars).
Server role: ROLE_STANDALONE
# Global parameters
[global]
netbios name = XABCDEFGHIJKLMNOPQRSTUVWXYZ
- nmblookup shows the truncated name:
root at trusty-samba-netbios-truncate-1505590:~# nmblookup '*'
10.0.100.204 *<00>
root at trusty-samba-netbios-truncate-1505590:~# nmblookup -A 10.0.100.204
Looking up status of 10.0.100.204
WORKGROUP <00> - <GROUP> B <ACTIVE>
WORKGROUP <1e> - <GROUP> B <ACTIVE>
XABCDEFGHIJKLMN <00> - B <ACTIVE>
XABCDEFGHIJKLMN <03> - B <ACTIVE>
XABCDEFGHIJKLMN <20> - B <ACTIVE>
MAC Address = 00-00-00-00-00-00
- smbclient -L shows it as well, truncated:
root at trusty-samba-netbios-truncate-1505590:~# smbclient -L localhost -N
WARNING: The "syslog" option is deprecated
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (trusty-samba-netbios-truncate-1505590 server (Samba, Ubuntu))
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]
Server Comment
--------- -------
XABCDEFGHIJKLMN trusty-samba-netbios-truncate-1505590 server (Sa
Workgroup Master
--------- -------
WORKGROUP
- %m expands to the whole thing:
# l /var/log/samba/log.xabcdefghijklmnopqrstuvwxyz
-rw-r--r-- 1 root root 0 Sep 28 14:25 /var/log/samba/log.xabcdefghijklmnopqrstuvwxyz
- nmbd logs errors, but using the whole name, not an empty string:
[2017/09/28 14:29:05.387607, 0] ../source3/nmbd/nmbd_become_lmb.c:533(become_local_master_browser)
become_local_master_browser: Error - cannot find server XABCDEFGHIJKLMNOPQRSTUVWXYZ in workgroup WORKGROUP on subnet 10.0.100.204
artful which has samba 4.6.7 behaves mostly the same, it just doesn't
list the server under the "Server" header in the smbclient -L output.
Given all the above, I'll mark this bug as fix released in trusty. If
there is evidence to the contrary, please reopen it and comment.
Thanks!
** Changed in: samba (Ubuntu Trusty)
Status: Triaged => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1505590
Title:
netbios name truncating doesn't work
Status in samba:
Unknown
Status in samba package in Ubuntu:
Fix Released
Status in samba source package in Trusty:
Fix Released
Bug description:
[Impact]
* Netbios name truncating doesn't work.
* Which leads to empty machine names. It's fixed in the current version but
we should SRU the fix.
[Test Case]
- install samba
- edit smb.conf and set 'netbios name = XABCDEFGHIJKLMNOPQRSTUVWXYZ'
- start nmbd
- look what is the "Samba name server" in the log
[Regression Potential]
* Check that machine names are correct.
To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1505590/+subscriptions
More information about the foundations-bugs
mailing list