Univention Bugzilla – Bug 57374
Broken smb.conf during samba shares update
Last modified: 2024-06-03 14:12:55 CEST
Broken smb.conf during samba shares update. Found by Stefan: https://forge.univention.org/bugzilla/show_bug.cgi?id=57367#c0 The share configuration is deleted here: https://git.knut.univention.de/univention/ucs/-/blob/5.0-7/services/univention-samba4/samba-shares.py?ref_type=heads#L137 and later rewritten here: https://git.knut.univention.de/univention/ucs/-/blob/5.0-7/services/univention-samba4/samba-shares.py?ref_type=heads#L168 During that time frame, the include in shares.conf points to a non existing file and the following code fails: ``` >>> from samba.param import LoadParm >>> lp = LoadParm() >>> lp.load_default() Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: Unable to load default file ``` I expect that time frame to be very short, so it might not be the reason for bug 57367. Though I think it still makes sense to fix this just to make sure it is not the problem.