]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
auth: kill AuthUnknownSessionHandler
authorSage Weil <sage@redhat.com>
Fri, 12 Apr 2019 21:22:04 +0000 (16:22 -0500)
committerSage Weil <sage@redhat.com>
Wed, 24 Apr 2019 18:46:04 +0000 (13:46 -0500)
The only user is ProtocolV1, which passes in an in-use auth_method...
which must be either AUTH_NONE or AUTH_CEPHX since we successfully
authenticated at this point.

Signed-off-by: Sage Weil <sage@redhat.com>
src/auth/AuthSessionHandler.cc
src/auth/CMakeLists.txt
src/auth/unknown/AuthUnknownSessionHandler.h [deleted file]

index 5835396075b40f2589de99e950ce7c59e525929c..9a03138ca2e9b2491421ec978c2f69630e365e0f 100644 (file)
@@ -19,7 +19,6 @@
 #include "krb/KrbSessionHandler.hpp"
 #endif
 #include "none/AuthNoneSessionHandler.h"
-#include "unknown/AuthUnknownSessionHandler.h"
 
 #include "common/ceph_crypto.h"
 #define dout_subsys ceph_subsys_auth
@@ -44,8 +43,6 @@ AuthSessionHandler *get_auth_session_handler(
     return new CephxSessionHandler(cct, key, features);
   case CEPH_AUTH_NONE:
     return new AuthNoneSessionHandler();
-  case CEPH_AUTH_UNKNOWN:
-    return new AuthUnknownSessionHandler();
 #ifdef HAVE_GSSAPI
   case CEPH_AUTH_GSS: 
     return new KrbSessionHandler();
index d4bfa1a52fadc214a626e5c138cde281e3cfceed..c977acd8b3de57059471bc489819b9fabd2e3d7e 100644 (file)
@@ -10,8 +10,7 @@ set(auth_srcs
   cephx/CephxClientHandler.cc
   cephx/CephxProtocol.cc
   cephx/CephxSessionHandler.cc
-  none/AuthNoneAuthorizeHandler.cc
-  unknown/AuthUnknownAuthorizeHandler.cc)
+  none/AuthNoneAuthorizeHandler.cc)
 
 if(HAVE_GSSAPI)
   list(APPEND auth_srcs
diff --git a/src/auth/unknown/AuthUnknownSessionHandler.h b/src/auth/unknown/AuthUnknownSessionHandler.h
deleted file mode 100644 (file)
index 7230663..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- 
-// vim: ts=8 sw=2 smarttab
-/*
- * Ceph - scalable distributed file system
- *
- * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net>
- *
- * This is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software 
- * Foundation.  See file COPYING.
- * 
- */
-
-#include "auth/AuthSessionHandler.h"
-
-struct AuthUnknownSessionHandler : DummyAuthSessionHandler {
-};
-