A v1 connection should "succeed" at this point because the authentication
happens via MAuth messages.
Signed-off-by: Sage Weil <sage@redhat.com>
<< " 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];
}