Mon to mon links use authorizers. It's only non-mons connecting to mons
that use MAuth messages.
Signed-off-by: Sage Weil <sage@redhat.com>
<< " payload " << payload.length()
<< dendl;
if (!payload.length()) {
- if (!con->is_msgr2()) {
- // for v1 connections, we tolerate no authorizer, because authentication
- // happens via MAuth messages.
+ if (!con->is_msgr2() &&
+ con->get_peer_type() != CEPH_ENTITY_TYPE_MON) {
+ // for v1 connections, we tolerate no authorizer (from
+ // non-monitors), because authentication happens via MAuth
+ // messages.
return 1;
}
return -EACCES;