diff options
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/auth/gensec.c | 2 | ||||
-rw-r--r-- | source4/libcli/auth/gensec.h | 1 | ||||
-rw-r--r-- | source4/libcli/auth/gensec_gssapi.c | 6 | ||||
-rw-r--r-- | source4/libcli/auth/gensec_krb5.c | 2 |
4 files changed, 8 insertions, 3 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; } diff --git a/source4/libcli/auth/gensec.h b/source4/libcli/auth/gensec.h index 7c462414ff..8ee6abcd44 100644 --- a/source4/libcli/auth/gensec.h +++ b/source4/libcli/auth/gensec.h @@ -94,6 +94,7 @@ struct gensec_security_ops { struct auth_session_info **session_info); BOOL (*have_feature)(struct gensec_security *gensec_security, uint32 feature); + BOOL disabled_by_default; }; #define GENSEC_INTERFACE_VERSION 0 diff --git a/source4/libcli/auth/gensec_gssapi.c b/source4/libcli/auth/gensec_gssapi.c index 432d59ef24..f30d3c5c62 100644 --- a/source4/libcli/auth/gensec_gssapi.c +++ b/source4/libcli/auth/gensec_gssapi.c @@ -334,7 +334,8 @@ static const struct gensec_security_ops gensec_gssapi_krb5_security_ops = { .update = gensec_gssapi_update, .wrap = gensec_gssapi_wrap, .unwrap = gensec_gssapi_unwrap, - .have_feature = gensec_gssapi_have_feature + .have_feature = gensec_gssapi_have_feature, + .disabled_by_default = True }; @@ -347,7 +348,8 @@ static const struct gensec_security_ops gensec_gssapi_spnego_security_ops = { .update = gensec_gssapi_update, .wrap = gensec_gssapi_wrap, .unwrap = gensec_gssapi_unwrap, - .have_feature = gensec_gssapi_have_feature + .have_feature = gensec_gssapi_have_feature, + .disabled_by_default = True }; diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c index f55006c644..ce51cef894 100644 --- a/source4/libcli/auth/gensec_krb5.c +++ b/source4/libcli/auth/gensec_krb5.c @@ -712,6 +712,7 @@ static const struct gensec_security_ops gensec_krb5_security_ops = { .session_key = gensec_krb5_session_key, .session_info = gensec_krb5_session_info, .have_feature = gensec_krb5_have_feature, + .disabled_by_default = True }; static const struct gensec_security_ops gensec_ms_krb5_security_ops = { @@ -724,6 +725,7 @@ static const struct gensec_security_ops gensec_ms_krb5_security_ops = { .session_key = gensec_krb5_session_key, .session_info = gensec_krb5_session_info, .have_feature = gensec_krb5_have_feature, + .disabled_by_default = True }; |