From: Sage Weil Date: Thu, 15 Apr 2010 17:09:42 +0000 (-0700) Subject: mon: do not build mon to mon authorizer if cephx is disabled X-Git-Tag: v0.20~52 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2cc0ec293712b8d5e4829f68fb0456d58695e4f4;p=ceph.git mon: do not build mon to mon authorizer if cephx is disabled --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index c0ad6994e1d3..8f61667e9c0d 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1005,6 +1005,9 @@ bool Monitor::ms_get_authorizer(int service_id, AuthAuthorizer **authorizer, boo if (service_id != CEPH_ENTITY_TYPE_MON) return false; + if (!is_supported_auth(CEPH_AUTH_CEPHX)) + return false; + CephXServiceTicketInfo auth_ticket_info; CephXSessionAuthInfo info; int ret;