1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/scripting/bin/wscript_build
David Mulder 779d0f0271 samba-tool: Enable samba-tool without ad dc (but with ads)
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>
2021-06-20 22:06:36 +00:00

15 lines
585 B
Python

#!/usr/bin/env python3
if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
for script in ['samba_dnsupdate',
'samba_spnupdate',
'samba_kcc',
'samba_upgradeprovision',
'samba_upgradedns',
'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='.')