Originally this parameter only set two other parameters, but never set
the original string. By setting the string as well, we can make it be
emitted by testparm -v correctly (instead of ''), and set it back as the
value for the parameter.
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
const char *pszParmValue,
char **ptr)
{
+ static int parm_num = -1;
int low_port = -1, high_port = -1;
int rc;
+ if (parm_num == -1) {
+ parm_num = lpcfg_map_parameter("rpc server dynamic port range");
+ if (parm_num == -1) {
+ return false;
+ }
+ }
+
if (pszParmValue == NULL || pszParmValue[0] == '\0') {
return false;
}
return false;
}
+ if (!set_variable_helper(lp_ctx->globals->ctx, parm_num, ptr,
+ "rpc server dynamic port range",
+ pszParmValue)) {
+ return false;
+ }
+
lp_ctx->globals->rpc_low_port = low_port;
lp_ctx->globals->rpc_high_port = high_port;
'template homedir',
'max open files',
'include system krb5 conf',
- 'rpc server dynamic port range',
'mit kdc command',
'smbd max async dosmode',
])
exceptions = set([
'printing',
- 'rpc server dynamic port range',
'smbd max async dosmode',
])