$ sudo samba-tool domain provision --interactive [sudo] password for cornel: Reproducible: Always Steps to Reproduce: 1.sudo samba-tool domain provision --interactive 2. 3. Actual Results: 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() Expected Results: samba-tool works. testparm works fine $ rpm -qf $(which samba-tool) samba-tools-4.19.2-1.fc39.x86_64
I'm not able to reproduce this: krikkit:~ # rm -f /etc/samba/smb.conf krikkit:~ # samba-tool domain provision --interactive Realm: wurst.brot Does /etc/samba/smb.conf exist? What are the permissions of the file?
I confirm that the problem goes away if i remove smb.conf first. I can reproduce it only if smb.conf is already present. Thank you.
Can you share the failing smb.conf?
it's the default smb.conf, i'll share it on monday.
Created attachment 2007754 [details] original samba.conf
what info is needed?
Hi Cornel, I added the flag to Andreas to come back here later this week or the next one. There is no further action pending from your side at the moment, my apologies if it gave a wrong message. Kindly
The bug is fixed in upstream: https://bugzilla.samba.org/show_bug.cgi?id=15698 and will be backported to samba 4.20/4.21.