]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Fix user gpupdate called with NULL smb.conf
authorDavid Mulder <dmulder@samba.org>
Wed, 26 Oct 2022 18:37:01 +0000 (12:37 -0600)
committerJeremy Allison <jra@samba.org>
Thu, 27 Oct 2022 18:18:36 +0000 (18:18 +0000)
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_gpupdate.c

index 475569ee9b4e918fc67782e367014a9b86a2f920..6f294c1d030dfee3f588052e5a484013b57a942a 100644 (file)
@@ -127,6 +127,9 @@ void gpupdate_user_init(const char *user)
                loadparm_init_s3(NULL, loadparm_s3_helpers());
        const char *const *gpupdate_cmd = lpcfg_gpo_update_command(lp_ctx);
        const char *smbconf = lpcfg_configfile(lp_ctx);
+       if (smbconf == NULL) {
+               smbconf = lp_default_path();
+       }
 
        if (ctx == NULL) {
                DBG_ERR("talloc_new failed\n");