Much of samba-tool can operate without the full AD DC,
for remote operations.
However the samba-tool gpo command depends on ads being
built. Without ads, every samba-tool command
crashes because ads imports fail.
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
#!/usr/bin/env python3
if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
- for script in ['samba-tool',
- 'samba_dnsupdate',
+ for script in ['samba_dnsupdate',
'samba_spnupdate',
'samba_kcc',
'samba_upgradeprovision',
'gen_output.py',
'samba_downgrade_db']:
bld.SAMBA_SCRIPT(script, pattern=script, installdir='.')
+if bld.CONFIG_SET('WITH_ADS'):
+ bld.SAMBA_SCRIPT('samba-tool', pattern='samba-tool', installdir='.')
bld.SAMBA_SCRIPT('samba-gpupdate', pattern='samba-gpupdate', installdir='.')
if 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']:
bld.MANPAGES(man_files, True)
-if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
+if bld.CONFIG_SET('WITH_ADS'):
bld.INSTALL_FILES('${BINDIR}',
'bin/samba-tool',
chmod=MODE_755, python_fixup=True, flat=True)