summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/auth/gensec_krb5.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c
index 5dbdf56b03..292c08f3f8 100644
--- a/source4/libcli/auth/gensec_krb5.c
+++ b/source4/libcli/auth/gensec_krb5.c
@@ -720,6 +720,11 @@ static const struct gensec_security_ops gensec_ms_krb5_security_ops = {
NTSTATUS gensec_krb5_init(void)
{
NTSTATUS ret;
+
+ if (!lp_parm_bool(-1, "gensec", "krb5", True)) {
+ return NT_STATUS_NOT_SUPPORTED;
+ }
+
ret = register_backend("gensec", &gensec_krb5_security_ops);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(0,("Failed to register '%s' gensec backend!\n",