summaryrefslogtreecommitdiff
path: root/source4/libcli/auth/gensec.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-01-03 07:08:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:15 -0500
commitc8ba520c5a66f2d4a4d95baf366a2194a752e9c5 (patch)
tree9045f68d626fefa75ebe731ce47e3ede95249d18 /source4/libcli/auth/gensec.c
parent8eb981c90a6094b15d4b71cc14fee4f23c713cf8 (diff)
downloadsamba-c8ba520c5a66f2d4a4d95baf366a2194a752e9c5.tar.gz
samba-c8ba520c5a66f2d4a4d95baf366a2194a752e9c5.tar.bz2
samba-c8ba520c5a66f2d4a4d95baf366a2194a752e9c5.zip
r4500: Allow GENSEC modules to be disabled by setting a flag on their module
definition, not by hardcoded reference in loadparm.c Andrew Bartlett (This used to be commit 43558eaf7604d2bb0187e0d1ba0686935a965ad7)
Diffstat (limited to 'source4/libcli/auth/gensec.c')
-rw-r--r--source4/libcli/auth/gensec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c
index 79cd98a076..c052f61c8c 100644
--- a/source4/libcli/auth/gensec.c
+++ b/source4/libcli/auth/gensec.c
@@ -778,7 +778,7 @@ NTSTATUS gensec_register(const void *_ops)
{
const struct gensec_security_ops *ops = _ops;
- if (!lp_parm_bool(-1, "gensec", ops->name, True)) {
+ if (!lp_parm_bool(-1, "gensec", ops->name, !ops->disabled_by_default)) {
DEBUG(2,("gensec subsystem %s is disabled\n", ops->name));
return NT_STATUS_OK;
}