mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
param: Connect lp_security to the lib/param code to allow tests
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
This commit is contained in:
parent
29cd8ae6fd
commit
3ac3de73b4
@ -3733,3 +3733,13 @@ int lpcfg_server_role(struct loadparm_context *lp_ctx)
|
||||
(lp_ctx->globals->domain_master == true) ||
|
||||
(lp_ctx->globals->domain_master == Auto));
|
||||
}
|
||||
|
||||
int lpcfg_security(struct loadparm_context *lp_ctx)
|
||||
{
|
||||
if (lp_ctx->s3_fns) {
|
||||
return lp_ctx->s3_fns->security();
|
||||
}
|
||||
|
||||
return lp_find_security(lp_ctx->globals->server_role,
|
||||
lp_ctx->globals->security);
|
||||
}
|
||||
|
@ -96,6 +96,7 @@ sub print_header($$)
|
||||
$file->("\tbool (*set_cmdline)(const char *pszParmName, const char *pszParmValue);\n");
|
||||
$file->("\tvoid (*dump)(FILE *f, bool show_defaults, int maxtoprint);\n");
|
||||
$file->("\tint (*server_role)(void);\n");
|
||||
$file->("\tint (*security)(void);\n");
|
||||
}
|
||||
|
||||
sub print_footer($$)
|
||||
|
@ -74,6 +74,7 @@ static const struct loadparm_s3_context s3_fns =
|
||||
.dump = lp_dump,
|
||||
|
||||
.server_role = lp_server_role,
|
||||
.security = lp_security,
|
||||
|
||||
.winbind_separator = lp_winbind_separator,
|
||||
.template_homedir = lp_template_homedir,
|
||||
|
Loading…
Reference in New Issue
Block a user