1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

winbind: Add smbconf fallback for gpupdate_callback

We should use the configfile specified, but also
fallback if none is specified.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder 2022-10-27 06:40:41 -06:00 committed by Jeremy Allison
parent ea1f53fc8b
commit 8b55dabf55

View File

@ -58,7 +58,10 @@ static void gpupdate_callback(struct tevent_context *ev,
talloc_get_type_abort(private_data, struct gpupdate_state);
const char *const *gpupdate_cmd =
lpcfg_gpo_update_command(data->lp_ctx);
const char *smbconf = lp_default_path();
const char *smbconf = lpcfg_configfile(data->lp_ctx);
if (smbconf == NULL) {
smbconf = lp_default_path();
}
/* Execute gpupdate */
req = samba_runcmd_send(data->ctx, ev, timeval_zero(), 2, 0,