#include "cmdline_contexts.h"
#include "../librpc/gen_ndr/ndr_samr.h"
#include "lib/cmdline/cmdline.h"
+#include "lib/param/param.h"
enum pipe_auth_type_spnego {
PIPE_AUTH_TYPE_SPNEGO_NONE = 0,
}
if (argc == 2) {
- lp_set_cmdline("log level", argv[1]);
+ struct loadparm_context *lp_ctx = samba_cmdline_get_lp_ctx();
+ lpcfg_set_cmdline(lp_ctx, "log level", argv[1]);
}
printf("debuglevel is %d\n", DEBUGLEVEL);
const char *binding_string = NULL;
const char *host;
struct cli_credentials *creds = NULL;
+ struct loadparm_context *lp_ctx = NULL;
bool ok;
/* make sure the vars that get altered (4th field) are in
if (!ok) {
DBG_ERR("Failed to init cmdline parser!\n");
}
- lp_set_cmdline("log level", "0");
+ lp_ctx = samba_cmdline_get_lp_ctx();
+ lpcfg_set_cmdline(lp_ctx, "log level", "0");
/* Parse options */
pc = samba_popt_get_context(getprogname(),