Author: tridge
Date: 2004-09-17 06:49:24 +0000 (Fri, 17 Sep 2004)
New Revision: 2377

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/libcli/auth&rev=2377&nolog=1

Log:
added a more generic way of disabling gensec subsystems. For example,
"gensec:ntlmssp=no" will disable ntlmssp.


Modified:
   branches/SAMBA_4_0/source/libcli/auth/gensec.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/gensec.c      2004-09-17 06:33:19 UTC (rev 
2376)
+++ branches/SAMBA_4_0/source/libcli/auth/gensec.c      2004-09-17 06:49:24 UTC (rev 
2377)
@@ -736,6 +736,11 @@
 {
        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", 

Reply via email to