too long netbios name shouldn't be a fatal error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
The container I'm using to test the fix for https:/
$ hostname -f
focal-bind9-
Samba by default will try to use the host part as its netbios name. Such names have a length limit, which is a bit short.
When using testparm, this is flagged:
$ testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
WARNING: The 'netbios name' is too long (max. 15 chars).
...
But is not a fatal error.
The samba-common-bin postinst, however, uses "samba-tool testparm" when the "server role" is "active directory domain controller", and that has a different behavior:
$ samba-tool testparm
INFO 2020-02-22 21:16:42,905 pid:37370 /usr/lib/
INFO 2020-02-22 21:16:42,905 pid:37370 /usr/lib/
ERROR 2020-02-22 21:16:42,905 pid:37370 /usr/lib/
Press enter to see a dump of your service definitions
(...)
ERROR: Invalid smb.conf
$ echo $?
255
This fails the package installation.
Setting up samba-common-bin (2:4.11.
Checking smb.conf with samba-tool
INFO 2020-02-22 21:11:22,932 pid:36820 /usr/lib/
INFO 2020-02-22 21:11:22,933 pid:36820 /usr/lib/
ERROR 2020-02-22 21:11:22,933 pid:36820 /usr/lib/
ERROR: Invalid smb.conf
dpkg: error processing package samba-common-bin (--configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 255
Unless it's absolutely critical that in an AD role the netbios name be 15 characters long max, this should just be a warning instead of a fatal error.
Changed in samba (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | New → In Progress |
description: | updated |
Changed in samba (Ubuntu): | |
assignee: | Andreas Hasenack (ahasenack) → nobody |
status: | In Progress → Triaged |
importance: | High → Low |