gensec: Change log level for message when obtaining PAC from gss_get_name_attribute...
authorChristof Schmitt <cs@samba.org>
Fri, 1 Jul 2016 18:52:15 +0000 (11:52 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 6 Jul 2016 02:27:03 +0000 (04:27 +0200)
This is the second part for the issue from commit 8bb4fccd. A KDC that
does not return a PAC first triggers this message, then the "resorting
to local user lookup" one. Change the log level for the "obtaining PAC
via GSSAPI gss_get_name_attribute" message as well to avoid spamming the
logs during normal usage. While changing this message, also remove the
discard_const since it is no longer required.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jul  6 04:27:03 CEST 2016 on sn-devel-144

auth/kerberos/gssapi_pac.c

index 74c199adc94536d2f3598e121d4805ccc923b18f..bcc1ba4372a6e30ac580d3a2408feb79b922e5a5 100644 (file)
@@ -112,12 +112,10 @@ NTSTATUS gssapi_obtain_pac_blob(TALLOC_CTX *mem_ctx,
                &pac_buffer, &pac_display_buffer, &more);
 
        if (gss_maj != 0) {
-               DEBUG(0, ("obtaining PAC via GSSAPI gss_get_name_attribute failed: %s\n",
-                         gssapi_error_string(mem_ctx,
-                                             gss_maj,
-                                             gss_min,
-                                             discard_const_p(struct gss_OID_desc_struct,
-                                                             gss_mech_krb5))));
+               DBG_NOTICE("obtaining PAC via GSSAPI gss_get_name_attribute "
+                          "failed: %s\n", gssapi_error_string(mem_ctx,
+                                                              gss_maj, gss_min,
+                                                              gss_mech_krb5));
                return NT_STATUS_ACCESS_DENIED;
        } else if (authenticated && complete) {
                /* The PAC blob is returned directly */