summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-11-10 17:11:18 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-11-17 00:34:09 +0100
commit3ac3de73b4e2cfb8dfe21c502de8432abb29d685 (patch)
treebfdc463ab83312707106dadb16f516d97863cfec /lib
parent29cd8ae6fd58bd968958447e1438ff05a3bf4b48 (diff)
downloadsamba-3ac3de73b4e2cfb8dfe21c502de8432abb29d685.tar.gz
samba-3ac3de73b4e2cfb8dfe21c502de8432abb29d685.tar.bz2
samba-3ac3de73b4e2cfb8dfe21c502de8432abb29d685.zip
param: Connect lp_security to the lib/param code to allow tests
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/param/loadparm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 5f2feca51f..9abd11fc30 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -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);
+}