Creating this bug for backports to samba 4.20/4.21. Fix is ready: https://gitlab.com/samba-team/samba/-/merge_requests/3769 Reported for Fedora https://bugzilla.redhat.com/show_bug.cgi?id=2248840: $ sudo samba-tool domain provision --interactive ERROR(runtime): uncaught exception - Unable to load default file File "/usr/lib64/python3.12/site-packages/samba/netcmd/__init__.py", line 279, in _run return self.run(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/samba/netcmd/domain/provision.py", line 182, in run lp = sambaopts.get_loadparm() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/samba/getopt.py", line 120, in get_loadparm self._lp.load_default()
Created attachment 18415 [details] patch for v4-21-test
Created attachment 18416 [details] patch for v4-20-test
Evaluation: Python based command "samba-tool domain provision" is using C-code from lib/param/loadparm.c to process smb.conf. If smb.conf contains "include" for non-existing file, the whole processing fails. Other samba components process smb.conf using C-code from source3/param/loadparm.c which allows "include" for non-existing files. The fix is to allow it in lib/param/loadparm.c (and samba-tool) as well.
Pushed to autobuild-v4-{21,20}-test.
This bug was referenced in samba v4-21-test: 0d41094f1304777f1c414de97b6d691983033913
This bug was referenced in samba v4-20-test: cccf0beb9f897a0b9508b45118512fbb373e7da4
Closing out bug report. Thanks!
This bug was referenced in samba v4-21-stable (Release samba-4.21.0rc4): 0d41094f1304777f1c414de97b6d691983033913
This bug was referenced in samba v4-20-stable (Release samba-4.20.5): cccf0beb9f897a0b9508b45118512fbb373e7da4