From 74a8f0c0fb591ffce4f5c50c93f78dfb9a798cc9 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 14 Oct 2009 15:14:24 -0700 Subject: [PATCH] auth: mon does not deny connection without auth data --- src/mon/Monitor.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 0e9f75e15c320..af975baa4de2f 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -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; }; -- 2.39.5