]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:cmdline: Use lp_load_global() for servers
authorAndreas Schneider <asn@samba.org>
Wed, 21 Jul 2021 14:06:15 +0000 (16:06 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 22 Jul 2021 14:47:09 +0000 (14:47 +0000)
As for client we need to enable support for 'config backend = registry'.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jul 22 14:47:09 UTC 2021 on sn-devel-184

lib/cmdline/cmdline.h
lib/cmdline/cmdline_s3.c

index 8c816c5bce33fd5666f38dd0f6b90bf063902b49..3c0c9e8c18d2c0d7055208dd6e5360726b011849 100644 (file)
@@ -59,6 +59,15 @@ enum smb_cmdline_popt_options {
  * The function will also setup fault handler, set logging to STDERR by
  * default, setup talloc logging and the panic handler.
  *
+ * The function also setups a callback for loading the smb.conf file, the
+ * config file will be parsed after the commandline options have been parsed
+ * by popt. This is done by one of the following options parser:
+ *
+ *     POPT_COMMON_DEBUG_ONLY
+ *     POPT_COMMON_OPTION_ONLY
+ *     POPT_COMMON_CONFIG_ONLY
+ *     POPT_COMMON_SAMBA
+ *
  * @param[in]  mem_ctx  The talloc memory context to use for allocating memory.
  *                      This should be a long living context till the client
  *                      exits.
index 31250b1996e273968de912f3d04d7424d8e7304b..70fd768a648d28dca2d54db55e10f05550e3e51b 100644 (file)
@@ -56,7 +56,7 @@ static bool _samba_cmdline_load_config_s3(void)
                ok = lp_load_client(config_file);
                break;
        case SAMBA_CMDLINE_CONFIG_SERVER:
-               ok = lp_load_initial_only(config_file);
+               ok = lp_load_global(config_file);
                break;
        }