From 3e3f7b0ed03baa1d97012a787f377fdca131d219 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 Sep 2004 06:49:24 +0000 Subject: r2377: added a more generic way of disabling gensec subsystems. For example, "gensec:ntlmssp=no" will disable ntlmssp. (This used to be commit 66f88c7d89154155b27bf8b7839c580fb1cd1e7c) --- source4/libcli/auth/gensec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/libcli') diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c index 4470d6d21a..b47840dc65 100644 --- a/source4/libcli/auth/gensec.c +++ b/source4/libcli/auth/gensec.c @@ -736,6 +736,11 @@ static NTSTATUS gensec_register(const void *_ops) { const struct gensec_security_ops *ops = _ops; + if (!lp_parm_bool(-1, "gensec", ops->name, True)) { + DEBUG(2,("gensec subsystem %s is disabled\n", ops->name)); + return NT_STATUS_OK; + } + if (gensec_security_by_name(ops->name) != NULL) { /* its already registered! */ DEBUG(0,("GENSEC backend '%s' already registered\n", -- cgit