qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject qpid-proton git commit: NO-JIRA: Include selected mechanism with authentication failures - This shoiuld help with the cases where GSSAPI gets selected without the user realising
Date Tue, 04 Aug 2015 22:07:26 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/0.10.x 39b3dd56a -> 1cff839b8


NO-JIRA: Include selected mechanism with authentication failures
- This shoiuld help with the cases where GSSAPI gets selected
  without the user realising


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/1cff839b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/1cff839b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/1cff839b

Branch: refs/heads/0.10.x
Commit: 1cff839b8c4ae30be032541036c96a2b425b479a
Parents: 39b3dd5
Author: Andrew Stitcher <astitcher@apache.org>
Authored: Tue Aug 4 18:02:54 2015 -0400
Committer: Andrew Stitcher <astitcher@apache.org>
Committed: Tue Aug 4 18:06:44 2015 -0400

----------------------------------------------------------------------
 proton-c/src/sasl/sasl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1cff839b/proton-c/src/sasl/sasl.c
----------------------------------------------------------------------
diff --git a/proton-c/src/sasl/sasl.c b/proton-c/src/sasl/sasl.c
index a01cce5..83543ec 100644
--- a/proton-c/src/sasl/sasl.c
+++ b/proton-c/src/sasl/sasl.c
@@ -225,7 +225,7 @@ static void pni_post_sasl_frame(pn_transport_t *transport)
       pn_post_frame(transport, SASL_FRAME_TYPE, 0, "DL[B]", SASL_OUTCOME, sasl->outcome);
       pni_emit(transport);
       if (sasl->outcome!=PN_SASL_OK) {
-        pn_do_error(transport, "amqp:unauthorized-access", "Failed to authenticate client");
+        pn_do_error(transport, "amqp:unauthorized-access", "Failed to authenticate client
[mech=%s]", transport->sasl->selected_mechanism);
         desired_state = SASL_ERROR;
       }
       break;
@@ -235,7 +235,7 @@ static void pni_post_sasl_frame(pn_transport_t *transport)
         continue;
       }
       if (sasl->outcome!=PN_SASL_OK) {
-        pn_do_error(transport, "amqp:unauthorized-access", "Authentication failed");
+        pn_do_error(transport, "amqp:unauthorized-access", "Authentication failed [mech=%s]",
transport->sasl->selected_mechanism);
         desired_state = SASL_ERROR;
       }
       break;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message