summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-06 16:47:32 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-06 10:48:53 +0200
commitb9108cac529dac4b4b392fab4bac4fd0e6da1b4b (patch)
tree6afa91bd75615e3f41e5865f36723fc5d1242a27 /source4/param
parentd72b05cfe7d5c020fa32c8906f6185e1427e0a88 (diff)
downloadsamba-b9108cac529dac4b4b392fab4bac4fd0e6da1b4b.tar.gz
samba-b9108cac529dac4b4b392fab4bac4fd0e6da1b4b.tar.bz2
samba-b9108cac529dac4b4b392fab4bac4fd0e6da1b4b.zip
s3-s4-param: Add hooks for parametric options in the s3/s4 glue layer
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 6 10:48:53 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/loadparm.c5
1 files changed, 5 insertions, 0 deletions
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);