samba_gpoupdate crashes if passed without argument. Instead, it should display usage of the command. # samba_gpoupdate Traceback (most recent call last): File "/usr/sbin/samba_gpoupdate", line 176, in <module> apply_gp(lp, creds, test_ldb, logger, store, gp_extensions) File "/usr/sbin/samba_gpoupdate", line 62, in apply_gp dc_hostname = get_dc_hostname(creds, lp) File "/usr/sbin/samba_gpoupdate", line 49, in get_dc_hostname nbt.NBT_SERVER_DS)) samba.NTSTATUSError: (3221225524, 'The object name is not found.')
This was fixed in master around May 2018. Passing no arguments to samba-gpupdate now causes it to perform a machine group policy apply.