s4-auth: quiet down the krb5 warnings when kerberos is not set to 'MUST'
[ira/wip.git] / source4 / auth / gensec / gensec.c
index b91e790d3cf7648400880ad60b5f81eaffddeedc..7e6a83d51f55642d22bd26aa32b9a2a77b4d3f47 100644 (file)
@@ -639,7 +639,7 @@ static NTSTATUS gensec_start_mech(struct gensec_security *gensec_security)
                if (gensec_security->ops->client_start) {
                        status = gensec_security->ops->client_start(gensec_security);
                        if (!NT_STATUS_IS_OK(status)) {
-                               DEBUG(2, ("Failed to start GENSEC client mech %s: %s\n",
+                               DEBUG(gensec_security->subcontext?4:2, ("Failed to start GENSEC client mech %s: %s\n",
                                          gensec_security->ops->name, nt_errstr(status))); 
                        }
                        return status;