]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: mon does not deny connection without auth data
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 14 Oct 2009 22:14:24 +0000 (15:14 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 14 Oct 2009 22:14:24 +0000 (15:14 -0700)
src/mon/Monitor.cc

index 0e9f75e15c320e1b5a4aad60a819d69415fa7fc4..af975baa4de2f89ba72edd85a63d18fe42fa2aac 100644 (file)
@@ -828,14 +828,16 @@ bool Monitor::ms_verify_authorizer(Connection *con, int peer_type,
 
   bufferlist::iterator iter = authorizer_data.begin();
 
+  isvalid = true;
+
   if (!authorizer_data.length())
-    return -EPERM;
+    return true; /* we're not picky */
 
   int ret = authorizer.verify_authorizer(peer_type, iter, authorizer_reply);
   dout(0) << "Monitor::verify_authorizer returns " << ret << dendl;
 
   isvalid = (ret >= 0);
+
   return true;
 };