diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 666eeacce37..bd7ab12932b 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -5875,7 +5875,8 @@ int Monitor::get_auth_request( bufferlist *out) { std::scoped_lock l(auth_lock); - if (con->get_peer_type() != CEPH_ENTITY_TYPE_MON) { + if (con->get_peer_type() != CEPH_ENTITY_TYPE_MON && + con->get_peer_type() != CEPH_ENTITY_TYPE_MGR) { return -EACCES; } AuthAuthorizer *auth; @@ -5883,7 +5884,7 @@ int Monitor::get_auth_request( return -EACCES; } auth_meta->authorizer.reset(auth); - auth_registry.get_supported_modes(CEPH_ENTITY_TYPE_MON, + auth_registry.get_supported_modes(con->get_peer_type(), auth->protocol, preferred_modes); *method = auth->protocol;