]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: set isvalid in verify_authroizer
authorSage Weil <sage@newdream.net>
Fri, 30 Oct 2009 22:13:44 +0000 (15:13 -0700)
committerSage Weil <sage@newdream.net>
Fri, 30 Oct 2009 22:13:44 +0000 (15:13 -0700)
src/auth/AuthAuthorizeHandler.cc
src/auth/cephx/CephxProtocol.cc
src/mds/MDS.cc
src/vstart.sh

index ea3f4ed7386039199f46d4c3601879734e702a4e..3c3bd3cd608e487de96ee4b90c751fbacd3a5480 100644 (file)
@@ -30,5 +30,7 @@ AuthAuthorizeHandler *get_authorize_handler(int protocol)
   if (iter != authorizers.end())
     return iter->second;
 
+  dout(0) << "get_authorize_handler protocol " << protocol << " not supported" << dendl;
+
   return NULL;
 }
index 0922ae7983208ebf073118edb4c51a89c46c18c5..607be3ddf60f105a8d6c8500cef4cf0507bcfd26 100644 (file)
@@ -302,7 +302,8 @@ bool cephx_verify_authorizer(KeyStore& keys, bufferlist::iterator& indata,
   if (encode_encrypt(reply, ticket_info.session_key, reply_bl) < 0)
     return false;
 
-  dout(10) << "verify_authorizer ok reply_bl.length()=" << reply_bl.length() <<  dendl;
+  dout(10) << "verify_authorizer ok nonce " << hex << auth_msg.nonce << dec
+          << " reply_bl.length()=" << reply_bl.length() <<  dendl;
   return true;
 }
 
index c3d86b88202ffbdcd2b4123177a6369e2e681fbe..8f9829472358751e440b5b57835e75232654456b 100644 (file)
@@ -1465,10 +1465,8 @@ void MDS::ms_handle_remote_reset(Connection *con)
 
 bool MDS::ms_verify_authorizer(Connection *con, int peer_type,
                               int protocol, bufferlist& authorizer_data, bufferlist& authorizer_reply,
-                              bool& isvalid)
+                              bool& is_valid)
 {
-  bool is_valid;
-
   AuthAuthorizeHandler *authorize_handler = get_authorize_handler(protocol);
   if (!authorize_handler) {
     is_valid = false;
index 97d47bd57d1d7949d252bfde6640b0b61669833b..470210ac0413230a1e556ba076f2cd75764fe983 100755 (executable)
@@ -144,6 +144,7 @@ else
         lockdep = 1
         debug ms = 1
         debug mds = 20
+        debug auth = 20
         debug monc = 20
         mds log max segments = 2'
 fi