global_mapi_ctx->dumpdata = false;
global_mapi_ctx->session = NULL;
global_mapi_ctx->lp_ctx = loadparm_init(global_mapi_ctx->mem_ctx);
- lp_load_default(global_mapi_ctx->lp_ctx);
+ lpcfg_load_default(global_mapi_ctx->lp_ctx);
/* Enable logging on stdout */
setup_logging(NULL, DEBUG_STDOUT);
OPENCHANGE_RETVAL_IF(!global_mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
debuglevel = talloc_asprintf(talloc_autofree_context(), "%u", level);
- ret = lp_set_cmdline(global_mapi_ctx->lp_ctx, "log level", debuglevel);
+ ret = lpcfg_set_cmdline(global_mapi_ctx->lp_ctx, "log level", debuglevel);
talloc_free(debuglevel);
return (ret == true) ? MAPI_E_SUCCESS : MAPI_E_INVALID_PARAMETER;
notify_ctx->notifications->prev = NULL;
notify_ctx->notifications->next = NULL;
- load_interfaces(mem_ctx, lp_interfaces(global_mapi_ctx->lp_ctx), &ifaces);
+ load_interfaces(mem_ctx, lpcfg_interfaces(global_mapi_ctx->lp_ctx), &ifaces);
ipaddr = iface_best_ip(ifaces, global_mapi_ctx->session->profile->server);
if (!ipaddr) {
talloc_free(notify_ctx->notifications);
mapiadmin_ctx->description ?
mapiadmin_ctx->description :
"OpenChange account created by host %s: %s",
- lp_netbios_name(global_mapi_ctx->lp_ctx),
+ lpcfg_netbios_name(global_mapi_ctx->lp_ctx),
timestring(mapiadmin_ctx->user_ctx, time(NULL)));
DEBUG(3, ("Resetting ACB flags, force pw change time\n"));
/* Retrieve the binding string from parametric options if undefined */
if (!binding) {
- binding = lp_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "binding");
+ binding = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "binding");
if (!binding) {
DEBUG(0, ("You must specify a DCE/RPC binding string\n"));
return NT_STATUS_INVALID_PARAMETER;
}
/* Retrieve parametric options */
- machine_account = lp_parm_bool(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "use_machine_account", false);
- user = lp_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "username");
- pass = lp_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "password");
- domain = lp_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "domain");
+ machine_account = lpcfg_parm_bool(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "use_machine_account", false);
+ user = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "username");
+ pass = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "password");
+ domain = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "domain");
/* Retrieve private mapiproxy data */
private = dce_call->context->private_data;
DEBUG(5, ("dcerpc_mapiproxy: Delegated credentials acquired\n"));
}
- delegated = lp_parm_bool(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "delegated_auth", false);
+ delegated = lpcfg_parm_bool(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "delegated_auth", false);
if (delegated == false) {
status = mapiproxy_op_connect(dce_call, table, NULL);
}
dce_call->conn->server_id.id, dce_call->conn->server_id.id2, dce_call->conn->server_id.node));
/* Retrieve server mode parametric option */
- server_mode = lp_parm_bool(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "server", false);
+ server_mode = lpcfg_parm_bool(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "server", false);
/* Initialize private structure */
private = talloc(dce_call->context, struct dcesrv_mapiproxy_private);
ret = mapiproxy_server_init(dce_ctx);
NT_STATUS_NOT_OK_RETURN(ret);
- ifaces = str_list_make(dce_ctx, lp_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "interfaces"), NULL);
+ ifaces = str_list_make(dce_ctx, lpcfg_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "interfaces"), NULL);
for (i = 0; ifaces[i]; i++) {
/* Register the interface */
/* Step 3. Modify Exchange binding strings and only return ncacn_ip_tcp */
slpstr->cValues = 1;
slpstr->lppszA[0] = talloc_asprintf(dce_call, "ncacn_ip_tcp:%s.%s",
- lp_netbios_name(dce_call->conn->dce_ctx->lp_ctx),
- lp_realm(dce_call->conn->dce_ctx->lp_ctx));
+ lpcfg_netbios_name(dce_call->conn->dce_ctx->lp_ctx),
+ lpcfg_realm(dce_call->conn->dce_ctx->lp_ctx));
strlower_m((char *)slpstr->lppszA[0]);
return true;
if (private->exchname) {
if (strstr(lpProp->value.lpszA, private->exchname)) {
lpProp->value.lpszA = string_sub_talloc((TALLOC_CTX *) dce_call, lpProp->value.lpszA, private->exchname,
- lp_netbios_name(dce_call->conn->dce_ctx->lp_ctx));
+ lpcfg_netbios_name(dce_call->conn->dce_ctx->lp_ctx));
}
} else {
lpszA = talloc_strdup(dce_call, lpProp->value.lpszA);
if ((exchname = x500_get_servername(lpszA))) {
private->exchname = talloc_strdup(NULL, exchname);
lpProp->value.lpszA = string_sub_talloc((TALLOC_CTX *) dce_call, lpProp->value.lpszA, exchname,
- lp_netbios_name(dce_call->conn->dce_ctx->lp_ctx));
+ lpcfg_netbios_name(dce_call->conn->dce_ctx->lp_ctx));
talloc_free(exchname);
}
talloc_free(lpszA);
uint32_t i;
private = dce_call->context->private_data;
- proxyname = lp_netbios_name(dce_call->conn->dce_ctx->lp_ctx);
+ proxyname = lpcfg_netbios_name(dce_call->conn->dce_ctx->lp_ctx);
if (!private->exchname) return false;
if (!r->out.ppszServer) return false;
*r->out.ppszServer = talloc_asprintf(dce_call, "%s.%s",
- lp_netbios_name(dce_call->conn->dce_ctx->lp_ctx),
- lp_realm(dce_call->conn->dce_ctx->lp_ctx));
+ lpcfg_netbios_name(dce_call->conn->dce_ctx->lp_ctx),
+ lpcfg_realm(dce_call->conn->dce_ctx->lp_ctx));
strlower_m((char *)*r->out.ppszServer);
return true;
NTSTATUS status;
/* Fetch the module list from smb.conf */
- modules = str_list_make(dce_ctx, lp_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "modules"), NULL);
+ modules = str_list_make(dce_ctx, lpcfg_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "modules"), NULL);
/* Add modules to the list */
for (i = 0; modules[i]; i++) {
NDR_EXCHANGE_DS_RFR_NAME, NULL };
/* Check server mode */
- server_mode = lp_parm_bool(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "server", false);
+ server_mode = lpcfg_parm_bool(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "server", false);
DEBUG(0, ("MAPIPROXY server mode %s\n", (server_mode == false) ? "disabled" : "enabled"));
if (server_mode == true) {
}
/* Check for override/custom NSPI server */
- nspi = lp_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "nspi_server");
+ nspi = lpcfg_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "nspi_server");
mapiproxy_server_overwrite(dce_ctx, nspi, NDR_EXCHANGE_NSP_NAME);
/* Check for override/custom EMSMDB server */
- emsmdb = lp_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "emsmdb_server");
+ emsmdb = lpcfg_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "emsmdb_server");
mapiproxy_server_overwrite(dce_ctx, emsmdb, NDR_EXCHANGE_EMSMDB_NAME);
/* Check for override/custom RFR server */
- rfr = lp_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "rfr_server");
+ rfr = lpcfg_parm_string(dce_ctx->lp_ctx, NULL, "dcerpc_mapiproxy", "rfr_server");
mapiproxy_server_overwrite(dce_ctx, rfr, NDR_EXCHANGE_DS_RFR_NAME);
for (server = server_list; server; server = server->next) {
if (!mem_ctx) return NULL;
/* Step 0. Retrieve a TDB context pointer on the emsabp_tdb database */
- tdb_path = talloc_asprintf(mem_ctx, "%s/%s", lp_private_dir(lp_ctx), EMSABP_TDB_NAME);
+ tdb_path = talloc_asprintf(mem_ctx, "%s/%s", lpcfg_private_dir(lp_ctx), EMSABP_TDB_NAME);
emsabp_tdb_ctx = tdb_open(tdb_path, 0, 0, O_RDWR|O_CREAT, 0600);
talloc_free(tdb_path);
if (!emsabp_tdb_ctx) {
if (!mem_ctx) return NULL;
/* Step 0. Retrieve a LDB context pointer on openchange.ldb database */
- ldb_path = talloc_asprintf(mem_ctx, "%s/%s", lp_private_dir(lp_ctx), OPENCHANGE_LDB_NAME);
+ ldb_path = talloc_asprintf(mem_ctx, "%s/%s", lpcfg_private_dir(lp_ctx), OPENCHANGE_LDB_NAME);
openchange_ldb_ctx = ldb_init(mem_ctx, ev);
if (!openchange_ldb_ctx) {
talloc_free(mem_ctx);
mem_ctx = talloc_named(NULL, 0, "mapistore_test");
lp_ctx = loadparm_init(mem_ctx);
- lp_load_default(lp_ctx);
+ lpcfg_load_default(lp_ctx);
setup_logging(NULL, DEBUG_STDOUT);
pc = poptGetContext("mapistore_test", argc, argv, long_options, 0);
poptFreeContext(pc);
if (opt_debug) {
- lp_set_cmdline(lp_ctx, "log level", opt_debug);
+ lpcfg_set_cmdline(lp_ctx, "log level", opt_debug);
}
retval = mapistore_set_mapping_path("/tmp");
mpm->attachments = NULL;
mpm->streams = NULL;
- mpm->ahead = lp_parm_bool(dce_ctx->lp_ctx, NULL, MPM_NAME, "ahead", false);
- mpm->sync = lp_parm_bool(dce_ctx->lp_ctx, NULL, MPM_NAME, "sync", false);
- mpm->sync_min = lp_parm_int(dce_ctx->lp_ctx, NULL, MPM_NAME, "sync_min", 500000);
- mpm->sync_cmd = str_list_make(dce_ctx, lp_parm_string(dce_ctx->lp_ctx, NULL, MPM_NAME, "sync_cmd"), " ");
- mpm->dbpath = lp_parm_string(dce_ctx->lp_ctx, NULL, MPM_NAME, "path");
+ mpm->ahead = lpcfg_parm_bool(dce_ctx->lp_ctx, NULL, MPM_NAME, "ahead", false);
+ mpm->sync = lpcfg_parm_bool(dce_ctx->lp_ctx, NULL, MPM_NAME, "sync", false);
+ mpm->sync_min = lpcfg_parm_int(dce_ctx->lp_ctx, NULL, MPM_NAME, "sync_min", 500000);
+ mpm->sync_cmd = str_list_make(dce_ctx, lpcfg_parm_string(dce_ctx->lp_ctx, NULL, MPM_NAME, "sync_cmd"), " ");
+ mpm->dbpath = lpcfg_parm_string(dce_ctx->lp_ctx, NULL, MPM_NAME, "path");
if ((mpm->ahead == true) && mpm->sync) {
DEBUG(0, ("%s: cache:ahead and cache:sync are exclusive!\n", MPM_ERROR));
}
lp_ctx = loadparm_init(dce_ctx);
- lp_load_default(lp_ctx);
+ lpcfg_load_default(lp_ctx);
dcerpc_init(lp_ctx);
talloc_free(database);
{
const char *test;
- test = lp_parm_string(dce_ctx->lp_ctx, NULL, "mpm_dummy", "test");
+ test = lpcfg_parm_string(dce_ctx->lp_ctx, NULL, "mpm_dummy", "test");
if (test) {
DEBUG(0, ("Sample dummy string: %s\n", test));
}
struct loadparm_context *lp_ctx;
/* Fetch the mapi call list from smb.conf */
- calls = str_list_make(dce_ctx, lp_parm_string(dce_ctx->lp_ctx, NULL, MPM_NAME, "opnums"), NULL);
+ calls = str_list_make(dce_ctx, lpcfg_parm_string(dce_ctx->lp_ctx, NULL, MPM_NAME, "opnums"), NULL);
mpm = talloc_zero(dce_ctx, struct mpm_pack);
mpm->mapi_calls = talloc_zero(mpm, uint8_t);
mpm->mapi_calls[i] = 0;
/* Fetch the lasthop parameter from smb.conf */
- mpm->lasthop = lp_parm_bool(dce_ctx->lp_ctx, NULL, MPM_NAME, "lasthop", true);
+ mpm->lasthop = lpcfg_parm_bool(dce_ctx->lp_ctx, NULL, MPM_NAME, "lasthop", true);
lp_ctx = loadparm_init(dce_ctx);
- lp_load_default(lp_ctx);
+ lpcfg_load_default(lp_ctx);
dcerpc_init(lp_ctx);
return NT_STATUS_OK;
}
/* Step 1. We don't have load-balancing support yet, just return Samba FQDN name */
- netbiosname = lp_netbios_name(dce_call->conn->dce_ctx->lp_ctx);
- realm = lp_realm(dce_call->conn->dce_ctx->lp_ctx);
+ netbiosname = lpcfg_netbios_name(dce_call->conn->dce_ctx->lp_ctx);
+ realm = lpcfg_realm(dce_call->conn->dce_ctx->lp_ctx);
if (!netbiosname || !realm) {
r->out.ppszUnused = NULL;
r->out.ppszServer = NULL;
return MAPI_E_LOGON_FAILED;
}
- netbiosname = lp_netbios_name(dce_call->conn->dce_ctx->lp_ctx);
- realm = lp_realm(dce_call->conn->dce_ctx->lp_ctx);
+ netbiosname = lpcfg_netbios_name(dce_call->conn->dce_ctx->lp_ctx);
+ realm = lpcfg_realm(dce_call->conn->dce_ctx->lp_ctx);
if (!netbiosname || !realm) {
goto failure;
}
int policy_min_pw_len = 0;
struct test_join *join;
char *random_pw;
- const char *dc_binding = lp_parm_string(torture->lp_ctx,
+ const char *dc_binding = lpcfg_parm_string(torture->lp_ctx,
NULL, "torture", "dc_binding");
join = talloc(NULL, struct test_join);
u.info21.description.string = talloc_asprintf(join,
"Samba4 torture account created by host %s: %s",
- lp_netbios_name(torture->lp_ctx),
+ lpcfg_netbios_name(torture->lp_ctx),
timestring(join, time(NULL)));
printf("Resetting ACB flags, force pw change time\n");
return 0;
}
- recipients = lp_parm_string(global_mapi_ctx->lp_ctx, NULL, "mapi", type);
+ recipients = lpcfg_parm_string(global_mapi_ctx->lp_ctx, NULL, "mapi", type);
/* no recipients */
if (recipients == 0) {
char *profname;
struct mapi_session *session = NULL;
- profdb = lp_parm_string(lp_ctx, NULL, "mapi", "profile_store");
+ profdb = lpcfg_parm_string(lp_ctx, NULL, "mapi", "profile_store");
if (!profdb) {
profdb = talloc_asprintf(mem_ctx, DEFAULT_PROFDB_PATH, getenv("HOME"));
if (!profdb) {
mapi_errstr("MAPIInitialize", GetLastError());
MAPI_RETVAL_IF(retval, retval, NULL);
- profname = talloc_strdup(mem_ctx, lp_parm_string(lp_ctx, NULL, "mapi", "profile"));
+ profname = talloc_strdup(mem_ctx, lpcfg_parm_string(lp_ctx, NULL, "mapi", "profile"));
if (!profname) {
retval = GetDefaultProfile(&profname);
MAPI_RETVAL_IF(retval, retval, NULL);
char *profname;
const char *password;
- profdb = lp_parm_string(lp_ctx, NULL, "mapi", "profile_store");
+ profdb = lpcfg_parm_string(lp_ctx, NULL, "mapi", "profile_store");
if (!profdb) {
profdb = talloc_asprintf(mem_ctx, DEFAULT_PROFDB_PATH, getenv("HOME"));
if (!profdb) {
if (retval != MAPI_E_SUCCESS) return NULL;
- profname = talloc_strdup(mem_ctx, lp_parm_string(lp_ctx, NULL, "mapi", "profile"));
+ profname = talloc_strdup(mem_ctx, lpcfg_parm_string(lp_ctx, NULL, "mapi", "profile"));
if (!profname) {
retval = GetDefaultProfile(&profname);
if (retval != MAPI_E_SUCCESS) {
}
}
- password = lp_parm_string(lp_ctx, NULL, "mapi", "password");
+ password = lpcfg_parm_string(lp_ctx, NULL, "mapi", "password");
retval = MapiLogonEx(&session, profname, password);
talloc_free(profname);
mapi_errstr("MapiLogonEx", GetLastError());
PR_SMTP_ADDRESS,
PR_GIVEN_NAME);
- lp_set_cmdline(lp_ctx, "mapi:to", session->profile->username);
+ lpcfg_set_cmdline(lp_ctx, "mapi:to", session->profile->username);
usernames = get_cmdline_recipients(mem_ctx, "to");
retval = ResolveNames(session, usernames, SPropTagArray, &SRowSet, &flaglist, 0);
TALLOC_CTX *mem_ctx;
struct mapi_profile *profile;
struct test_join *user_ctx = (struct test_join *) NULL;
- const char *username = lp_parm_string(torture->lp_ctx, NULL, "exchange", "username");
- const char *user_password = lp_parm_string(torture->lp_ctx, NULL, "exchange", "password");
+ const char *username = lpcfg_parm_string(torture->lp_ctx, NULL, "exchange", "username");
+ const char *user_password = lpcfg_parm_string(torture->lp_ctx, NULL, "exchange", "password");
struct mapi_session *session;
/* sanity checks */
enum MAPISTATUS retval;
TALLOC_CTX *mem_ctx;
bool ret = true;
- const char *s_subject = lp_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
+ const char *s_subject = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
int len_subject;
struct mapi_session *session;
mapi_object_t obj_store;
struct SRowSet SRowSet;
struct SPropTagArray *proptags;
uint32_t i;
- const char *operation = lp_parm_string(torture->lp_ctx, NULL, "mapi", "operation");
- const char *role = lp_parm_string(torture->lp_ctx, NULL, "mapi", "role");
+ const char *operation = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "operation");
+ const char *role = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "role");
uint32_t permission;
- const char *username = lp_parm_string(torture->lp_ctx, NULL, "mapi", "username");
+ const char *username = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "username");
/* init torture */
mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_permissions");
struct dcerpc_pipe *p;
TALLOC_CTX *mem_ctx;
bool ret = true;
- const char *appointment = lp_parm_string(torture->lp_ctx, NULL, "mapi", "appointment");
- const char *body = lp_parm_string(torture->lp_ctx, NULL, "mapi", "body");
- const char *location = lp_parm_string(torture->lp_ctx, NULL, "mapi", "location");
- const char *start = lp_parm_string(torture->lp_ctx, NULL, "mapi", "start");
- const char *end = lp_parm_string(torture->lp_ctx, NULL, "mapi", "end");
- uint32_t busy_status = lp_parm_int(torture->lp_ctx, NULL, "mapi", "busystatus", 0);
- uint32_t label = lp_parm_int(torture->lp_ctx, NULL, "mapi", "label", 0);
+ const char *appointment = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "appointment");
+ const char *body = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "body");
+ const char *location = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "location");
+ const char *start = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "start");
+ const char *end = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "end");
+ uint32_t busy_status = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "busystatus", 0);
+ uint32_t label = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "label", 0);
struct mapi_session *session;
uint64_t id_calendar;
mapi_object_t obj_store;
enum MAPISTATUS retval;
TALLOC_CTX *mem_ctx;
bool ret = true;
- const char *subject = lp_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
- const char *body = lp_parm_string(torture->lp_ctx, NULL, "mapi", "body");
- const char *filename = lp_parm_string(torture->lp_ctx, NULL, "mapi", "attachment");
+ const char *subject = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
+ const char *body = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "body");
+ const char *filename = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "attachment");
const char **usernames;
const char **usernames_to;
const char **usernames_cc;
struct dcerpc_pipe *p;
TALLOC_CTX *mem_ctx;
bool ret = true;
- const char *cardname = lp_parm_string(torture->lp_ctx, NULL, "mapi", "cardname");
- const char *fullname = lp_parm_string(torture->lp_ctx, NULL, "mapi", "fullname");
+ const char *cardname = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "cardname");
+ const char *fullname = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "fullname");
struct mapi_session *session;
uint64_t id_contacts;
mapi_object_t obj_store;
enum MAPISTATUS retval;
TALLOC_CTX *mem_ctx;
bool ret = true;
- const char *subject = lp_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
- const char *body = lp_parm_string(torture->lp_ctx, NULL, "mapi", "body");
+ const char *subject = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
+ const char *body = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "body");
const char **usernames;
const char **usernames_to;
const char **usernames_cc;
enum MAPISTATUS retval;
TALLOC_CTX *mem_ctx;
bool ret = true;
- const char *subject = lp_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
- const char *body = lp_parm_string(torture->lp_ctx, NULL, "mapi", "body");
- const char *filename = lp_parm_string(torture->lp_ctx, NULL, "mapi", "html");
+ const char *subject = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "subject");
+ const char *body = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "body");
+ const char *filename = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "html");
const char **usernames;
const char **usernames_to;
const char **usernames_cc;
struct dcerpc_pipe *p;
TALLOC_CTX *mem_ctx;
bool ret = true;
- const char *task = lp_parm_string(torture->lp_ctx, NULL, "mapi", "task");
- uint32_t priority = lp_parm_int(torture->lp_ctx, NULL, "mapi", "priority", 0);
- uint32_t status = lp_parm_int(torture->lp_ctx, NULL, "mapi", "status", 0);
+ const char *task = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "task");
+ uint32_t priority = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "priority", 0);
+ uint32_t status = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "status", 0);
struct mapi_session *session;
uint64_t id_task;
mapi_object_t obj_store;
struct Restriction_r Filter;
struct SRowSet *rowset;
struct SPropValue *lpProp;
- const char *profname = lp_parm_string(torture->lp_ctx, NULL, "mapi", "profile");
- const char *profdb = lp_parm_string(torture->lp_ctx, NULL, "mapi", "profile_store");
- uint32_t codepage = lp_parm_int(torture->lp_ctx, NULL, "mapi", "codepage", 0);
- uint32_t language = lp_parm_int(torture->lp_ctx, NULL, "mapi", "language", 0);
- uint32_t method = lp_parm_int(torture->lp_ctx, NULL, "mapi", "method", 0);
+ const char *profname = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "profile");
+ const char *profdb = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "profile_store");
+ uint32_t codepage = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "codepage", 0);
+ uint32_t language = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "language", 0);
+ uint32_t method = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "method", 0);
const char *username = NULL;
uint32_t instance_key = 0;
{
const char *workstation = cli_credentials_get_workstation(cmdline_credentials);
const char *domain = cli_credentials_get_domain(cmdline_credentials);
- const char *binding = lp_parm_string(torture->lp_ctx,
+ const char *binding = lpcfg_parm_string(torture->lp_ctx,
NULL, "torture", "binding");
struct dcerpc_binding *dcerpc_binding;
char *p_codepage = talloc_asprintf(mem_ctx, "0x%x", codepage);
struct SPropTagArray *flaglist = NULL;
const char *profdb;
char *profname;
- const char *username = lp_parm_string(torture->lp_ctx, NULL, "exchange", "resolvename");
- const char *password = lp_parm_string(torture->lp_ctx, NULL, "mapi", "password");
- uint32_t unicode = lp_parm_int(torture->lp_ctx, NULL, "mapi", "unicode", 0);
+ const char *username = lpcfg_parm_string(torture->lp_ctx, NULL, "exchange", "resolvename");
+ const char *password = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "password");
+ uint32_t unicode = lpcfg_parm_int(torture->lp_ctx, NULL, "mapi", "unicode", 0);
char *tmp;
char **usernames;
int j;
}
/* init mapi */
- profdb = lp_parm_string(torture->lp_ctx, NULL, "mapi", "profile_store");
+ profdb = lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "profile_store");
if (!profdb) {
profdb = talloc_asprintf(mem_ctx, DEFAULT_PROFDB_PATH, getenv("HOME"));
if (!profdb) {
if (retval != MAPI_E_SUCCESS) return false;
/* profile name */
- profname = talloc_strdup(mem_ctx, lp_parm_string(torture->lp_ctx, NULL, "mapi", "profile"));
+ profname = talloc_strdup(mem_ctx, lpcfg_parm_string(torture->lp_ctx, NULL, "mapi", "profile"));
if (!profname) {
retval = GetDefaultProfile(&profname);
if (retval != MAPI_E_SUCCESS) {