From 94d86a22a1ecfb74ccaa4ce441c33186544a69c8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 20 May 2010 08:39:10 -0400 Subject: s3-misc: Introduce lp_ncalrpc_dir() in S3, like we have in S4. --- source3/param/loadparm.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index bb6e1324fe7..4ae699ac2a4 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -376,6 +376,7 @@ struct global { int ismb2_max_read; int ismb2_max_write; int ismb2_max_trans; + char *ncalrpc_dir; }; static struct global Globals; @@ -4722,6 +4723,15 @@ static struct parm_struct parm_table[] = { .enum_list = NULL, .flags = FLAG_ADVANCED, }, + { + .label = "ncalrpc dir", + .type = P_STRING, + .p_class = P_GLOBAL, + .ptr = &Globals.ncalrpc_dir, + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED, + }, {NULL, P_BOOL, P_NONE, NULL, NULL, NULL, 0} }; @@ -5365,6 +5375,8 @@ static void init_globals(bool reinit_globals) Globals.ismb2_max_write = 1024*1024; Globals.ismb2_max_trans = 1024*1024; + string_set(&Globals.ncalrpc_dir, get_dyn_NCALRPCDIR()); + /* Now put back the settings that were set with lp_set_cmdline() */ apply_lp_set_cmdline(); } @@ -5895,6 +5907,8 @@ FN_GLOBAL_INTEGER(lp_client_signing, &Globals.client_signing) FN_GLOBAL_INTEGER(lp_server_signing, &Globals.server_signing) FN_GLOBAL_INTEGER(lp_client_ldap_sasl_wrapping, &Globals.client_ldap_sasl_wrapping) +FN_GLOBAL_STRING(lp_ncalrpc_dir, &Globals.ncalrpc_dir) + /* local prototypes */ static int map_parameter_canonical(const char *pszParmName, bool *inverse); -- cgit v1.2.1