From b9108cac529dac4b4b392fab4bac4fd0e6da1b4b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 6 Jun 2011 16:47:32 +1000 Subject: s3-s4-param: Add hooks for parametric options in the s3/s4 glue layer Autobuild-User: Andrew Bartlett Autobuild-Date: Mon Jun 6 10:48:53 CEST 2011 on sn-devel-104 --- source4/param/loadparm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/param') diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 2e60ef93b2..fba09fa2c4 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -815,6 +815,11 @@ const char *lpcfg_get_parametric(struct loadparm_context *lp_ctx, if (lp_ctx == NULL) return NULL; + if (lp_ctx->s3_fns) { + SMB_ASSERT(service == NULL); + return lp_ctx->s3_fns->get_parametric(type, option); + } + data = (service == NULL ? lp_ctx->globals->param_opt : service->param_opt); vfskey_tmp = talloc_asprintf(NULL, "%s:%s", type, option); -- cgit