Skip to content

Commit

Permalink
mon: fix mgr using auth_client_required policy
Browse files Browse the repository at this point in the history
This caused mgr daemons to fail to authenticate
when auth_client_required was set to something
different to auth_cluster_required.

Fixes: https://tracker.ceph.com/issues/22096
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 1e06fe0)
  • Loading branch information
John Spray authored and Prashant D committed Jan 29, 2018
1 parent e50835f commit 2852a5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mon/MonClient.cc
Expand Up @@ -366,7 +366,8 @@ int MonClient::init()
method = cct->_conf->auth_supported;
else if (entity_name.get_type() == CEPH_ENTITY_TYPE_OSD ||
entity_name.get_type() == CEPH_ENTITY_TYPE_MDS ||
entity_name.get_type() == CEPH_ENTITY_TYPE_MON)
entity_name.get_type() == CEPH_ENTITY_TYPE_MON ||
entity_name.get_type() == CEPH_ENTITY_TYPE_MGR)
method = cct->_conf->auth_cluster_required;
else
method = cct->_conf->auth_client_required;
Expand Down

0 comments on commit 2852a5f

Please sign in to comment.