summaryrefslogtreecommitdiff
path: root/source4/libcli/auth
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-17 06:49:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:46 -0500
commit3e3f7b0ed03baa1d97012a787f377fdca131d219 (patch)
treedd8f7b3a0ae084a654b952ff0632143cbabefa16 /source4/libcli/auth
parent64a727c6aa0903d0385e1f2482b63b48f0be07d2 (diff)
downloadsamba-3e3f7b0ed03baa1d97012a787f377fdca131d219.tar.gz
samba-3e3f7b0ed03baa1d97012a787f377fdca131d219.tar.bz2
samba-3e3f7b0ed03baa1d97012a787f377fdca131d219.zip
r2377: added a more generic way of disabling gensec subsystems. For example,
"gensec:ntlmssp=no" will disable ntlmssp. (This used to be commit 66f88c7d89154155b27bf8b7839c580fb1cd1e7c)
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r--source4/libcli/auth/gensec.c5
1 files changed, 5 insertions, 0 deletions
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",