From 6578fd62486bfbf7fe08b009a2cb08c23034bd2a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 17 Mar 2019 13:57:26 -0500 Subject: [PATCH] mon/Monitor: handle v1 call into handle_auth_request A v1 connection should "succeed" at this point because the authentication happens via MAuth messages. Signed-off-by: Sage Weil --- src/mon/Monitor.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 2bca52a0c8b9a..f56907c7cf0be 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -6192,6 +6192,14 @@ int Monitor::handle_auth_request( << " method " << auth_method << " payload " << payload.length() << dendl; + if (!payload.length()) { + if (!con->is_msgr2()) { + // for v1 connections, we tolerate no authorizer, because authentication + // happens via MAuth messages. + return 1; + } + return -EACCES; + } if (!more) { auth_meta->auth_mode = payload[0]; } -- 2.39.5