enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #06835
[Bug 1505590] Re: netbios name truncating doesn't work
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@trusty-samba-netbios-truncate-1505590:~# nmblookup '*'
10.0.100.204 *<00>
root@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@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
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1505590
Title:
netbios name truncating doesn't work
To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1505590/+subscriptions
References