Univention Bugzilla – Bug 38686
Improve Checks in Samba Initscript
Last modified: 2020-07-03 20:51:57 CEST
The current samba init-script samba-ad-dc uses testparm to confirm wether its a domaincontroller:
SERVER_ROLE=`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`
if [ "$SERVER_ROLE" != "active directory domain controller" ]; then
echo "Samba is not configured as AD DC."
The check potentially fails udner various circumstances where samba could be started without any problem.
For example if there are problems with specific share configurations.
As a result the samba domaincontroller completey loses its functionaluty instead of just having minor issues with _one share.
The check should be improved/changed
Yeah, this sucks, I agree. We should think about a better way and push a patch to the Debian packaging team. Let's bear in mind that all this restructuring of samba+smbd+nmbd from one source package is fairly new. If you have more recommendations for improvement here don't hesitate to bring the forward.
In Ticket# 2017021021000308 we had a share configured with double spaces. In this case the UMC should not allow this.
I've moved Comment 2 to the more specific Bug 38688.
Created attachment 8442 [details]
This patch improves the error handling.
This issue has been filed against UCS 4.2.
UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.
If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.