mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
mon: mons also connect to mgrs
Signed-off-by: Ricardo Dias <rdias@suse.com>
This commit is contained in:
parent
ad7abc3995
commit
98bfb40bc2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user