[Samba] AD-DC samba_gpoupdate fails with exception
David Mulder
dmulder at samba.org
Mon Jul 18 13:49:28 UTC 2022
On 7/16/22 6:15 PM, Thomas de la Tourette via samba wrote:
> 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
> self._lp.load_default()
> 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?
Samba python doesn't work with a registry smb.conf. It's not just a
problem with samba-gpupdate, it's a problem with all samba python
commands. IIRC, somebody submitted patches to fix this, although I don't
think it has been merged.
--
*David Mulder*
Labs Software Engineer, Samba
SUSE
1221 Valley Grove Way
Pleasant Grove, UT 84062
dmulder at suse.com
http://www.suse.com
More information about the samba
mailing list