]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: do not build mon to mon authorizer if cephx is disabled
authorSage Weil <sage@newdream.net>
Thu, 15 Apr 2010 17:09:42 +0000 (10:09 -0700)
committerSage Weil <sage@newdream.net>
Thu, 15 Apr 2010 17:09:42 +0000 (10:09 -0700)
src/mon/Monitor.cc

index c0ad6994e1d38588063d001996ae57b640a4156f..8f61667e9c0dc17aff0cd8d557d86a987db9488e 100644 (file)
@@ -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;