r22355: Ensure we get good debug messages from gss_XX calls.
authorJeremy Allison <jra@samba.org>
Thu, 19 Apr 2007 01:20:37 +0000 (01:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:28 +0000 (12:19 -0500)
Jeremy.

source/libsmb/clifsinfo.c

index e46456abb18ccb28d46648f81f67d59879cc23d5..a7bdeecca9151c635e54f41b9e515f20f44b42fe 100644 (file)
@@ -533,6 +533,9 @@ static NTSTATUS make_cli_gss_blob(struct smb_trans_enc_state *es,
 
        status = map_nt_error_from_gss(ret, min);
        if (!NT_STATUS_IS_OK(status) && !NT_STATUS_EQUAL(status,NT_STATUS_MORE_PROCESSING_REQUIRED)) {
+               ADS_STATUS adss = ADS_ERROR_GSS(ret, min);
+               DEBUG(10,("make_cli_gss_blob: gss_init_sec_context failed with %s\n",
+                       ads_errstr(adss)));
                goto fail;
        }