Univention Bugzilla – Bug 55678
Updates for samba without univention-samba4 leave samba in a not fully functional state
Last modified: 2023-02-16 11:58:04 CET
samba.postinst runs invoke-rc.d smbd restart invoke-rc.d nmbd restart invoke-rc.d samba-ad-dc restart And that leaves samba in a "half running" state, where smbclient "//$(hostname -f)/sysvol" -Uuser1%univention -c ls works but the use case of Bug #55515 doesn't: smbclient "//$(hostname -f)/sysvol" -W foo -Uuser1%univention -c ls Apparently there is some delicate interplay between nmbd and samba-ad-dc. +++ This bug was initially created as a clone of Bug #55677 +++
This is the behavior: ## first it works: root@primary20:~# smbclient "//$(hostname -f)/sysvol" -W foo -Uuser1%univention -c ls . D 0 Mon Jun 21 13:30:58 2021 .. D 0 Mon Feb 13 18:14:40 2023 ucs50domain.net D 0 Mon Jun 21 13:30:58 2021 49010764 blocks of size 1024. 42230688 blocks available ## but then: root@primary20:~# invoke-rc.d samba-ad-dc restart Warning: The unit file, source configuration file or drop-ins of samba-ad-dc.service changed on disk. Run 'systemctl daemon-reload' to reload units. root@primary20:~# smbclient "//$(hostname -f)/sysvol" -W foo -Uuser1%univention -c ls session setup failed: NT_STATUS_CONNECTION_REFUSED
r19750 | Make samba-ad-dc restart more robust c1ce981856 | Advisory update Package: samba Version: 2:4.16.8-1A~5.0.0.202302142143 Branch: ucs_5.0-0 Scope: errata5.0-3
OK: /etc/init.d/samba-ad-dc restart works now OK: /etc/init.d/samba restart still works Verified
<https://errata.software-univention.de/#/?erratum=5.0x574>