File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 45
45
* Lou Marvin Caraig, [ @se7entyse7en ] ( https://github.com/se7entyse7en )
46
46
* waliaashish85, [ @waliaashish85 ] ( https://github.com/waliaashish85 )
47
47
* Mark Roberts, [ @wizzat ] ( https://github.com/wizzat )
48
+ * Christophe Lecointe [ @christophelec ] ( https://github.com/christophelec )
49
+ * Mohamed Helmi Hichri [ @hellich ] ( https://github.com/hellich )
48
50
49
51
Thanks to all who have contributed!
Original file line number Diff line number Diff line change @@ -566,9 +566,9 @@ def _try_authenticate_gssapi(self, future):
566
566
# Kafka currently doesn't support integrity or confidentiality security layers, so we
567
567
# simply set QoP to 'auth' only (first octet). We reuse the max message size proposed
568
568
# by the server
569
- msg = Int8 .encode (SASL_QOP_AUTH & Int8 .decode (io .BytesIO (msg [0 ]))) + msg [1 :]
569
+ msg = Int8 .encode (SASL_QOP_AUTH & Int8 .decode (io .BytesIO (msg [0 : 1 ]))) + msg [1 :]
570
570
# add authorization identity to the response, GSS-wrap and send it
571
- msg = client_ctx .wrap (msg + auth_id , False ).message
571
+ msg = client_ctx .wrap (msg + auth_id . encode () , False ).message
572
572
size = Int32 .encode (len (msg ))
573
573
self ._send_bytes_blocking (size + msg )
574
574
You can’t perform that action at this time.
0 commit comments