[Samba] AD-DC samba_gpoupdate fails with exception

Thomas de la Tourette rdratlos at yahoo.co.uk
Sun Jul 17 00:15:53 UTC 2022

Samba 4.16.2
samba-gpupdate --forceaborts with following truntime error:
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
Processing section "[global]"
Can't find include file registry
pm_process() returned No
Traceback (most recent call last):
  File "/usr/bin/samba-gpupdate", line 77, in <module>
    lp = sambaopts.get_loadparm()
  File "/usr/lib/python3.10/site-packages/samba/getopt.py", line 92, in get_loadparm
RuntimeError: Unable to load default file

It seems that the Python load module is not aware of Samba registry configuration and the required settings in smb.conf:include = registry.
Are there any workarounds available?

More information about the samba mailing list